patverga / torch-relation-extraction

Universal Schema based relation extraction implemented in Torch.
Other
53 stars 20 forks source link

Examples without using GPU didn't work #4

Closed fengsy868 closed 7 years ago

fengsy868 commented 7 years ago

Hi,

I try to follow your examples, but I don't have GPU on my computer so I set -gpuid -1. But, when I run the scoring program, it has some bug about Invalid parameter: floatTensor Expected: DoubleTensor

so I modified a little the code and it runs. But the result failed to give me a score.

My candidate file is like: Barack Obama per:spouse Michelle Obama doc_info 0 2 8 10 Barack Obama was seen yesterday with his wife Michelle Obama

output is: Barack Obama per:spouse Michelle Obama doc_info 0 2 8 10 nan

Could you help me?

patverga commented 7 years ago

Hey I'm not sure exactly where the issue is. Can you paste the full stack trace? I will take a look once I get it.

patverga commented 7 years ago

It seems like this was due to a Lua version mismatch. Added requirement of Lua 5.1 to readme.