wolfe-pack / wolfe

Wolfe Language and Engine
https://wolfe-pack.github.io/wolfe
Apache License 2.0
135 stars 17 forks source link

Linear Chain example fails #134

Closed watercrossing closed 9 years ago

watercrossing commented 9 years ago

https://github.com/wolfe-pack/wolfe/blob/dev/wolfe-examples/src/main/scala/ml/wolfe/examples/LinearChain.scala fails with the error message:

Exception in thread "main" java.lang.Error: Method copy not defined on class cc.factorie.la.SingletonTensor1
    at cc.factorie.la.Tensor1$class.copy(Tensor1.scala:63)

It seems like we are using a SingletonTensor in an unsupported way?

riedelcastro commented 9 years ago

Yep, need to create our own copy around it for now. Note this linear chain representation is deprecated in that now we have variable length sequence domains that allow us to use the same domain across several instances. This allows to use same term (and memory allocation) for all instances in the corpus, which makes things more memory and cpu efficient

riedelcastro commented 9 years ago

I think this outdated now, but I will create a related issue