Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run train_crf.lua #2

Closed
sunyanfred opened this issue May 2, 2017 · 2 comments
Closed

Cannot run train_crf.lua #2

sunyanfred opened this issue May 2, 2017 · 2 comments

Comments

@sunyanfred
Copy link

After pre-processing, I have encountered a problem when I am trying to run train_crf.lua.

The feedback in the system is:

/home/sy/torch/install/bin/luajit: /home/sy/virtuoso-opensource/src/model/CRF.lua:192: invalid arguments: DoubleTensor number DoubleTensor
expected arguments: [DoubleTensor] DoubleTensor index LongTensor
stack traceback:
[C]: in function 'gather'
/home/sy/virtuoso-opensource/src/model/CRF.lua:192: in function 'forward'
train_crf.lua:130: in main chunk
[C]: in function 'dofile'
...e/sy/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x004064f0

Could you please help me figure it out?

@wudapeng268
Copy link

Hi sunyanfred,
When I run pre-processing, I got the error like this:
module' object has no attribute 'id_query_str
accurately the module is virtuoso so my question is how install virtuoso in python for you ? my virtuoso version is 0.12.6, what's yours? I also install SQLAlchemy (0.6.0) pyodbc(4.0.6) and rdflib (5.0.0.dev0).
I will appreciate it if you can give me any suggestion!

@zihangdai
Copy link
Owner

zihangdai commented Jun 17, 2017

Fixed for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants