stanfordnlp / treelstm

Tree-structured Long Short-Term Memory networks (http://arxiv.org/abs/1503.00075)
GNU General Public License v2.0
875 stars 234 forks source link

Running error #1

Closed Stepin2 closed 9 years ago

Stepin2 commented 9 years ago

I'd like to ask, when I am running you program, there's an error happened "treelstm-master/util/Vocab.lua:19: attempt to index local 'file' (a nil value)"

when I looked into the file directory, there is no file named as "glove.840B.300d.th" in the code, only "glove.840B.300d.txt.gz".. Thanks.

solomon0310 commented 8 years ago

hello, I got the same problem now. Would like to know if you fixed it and how??

aironashish commented 8 years ago

Try to run from the main directory. For example, th relatedness/main.lua. You are trying to run the program from relatedness or semantics directory.

peihuacher commented 7 years ago

Is this issue eventually solved? I ran ./fetch_and_preprocess.sh from the main folder but still got the error above. Can someone advise?

raymoo commented 6 years ago

I am getting the same error.

raymoo commented 6 years ago

I'm not sure what went wrong the first time, but I had to delete the glove vector dir and re-run the part of fetch_and_preprocess.sh that downloads and runs the glove vectors. As a hack I tried to copy the txt file to the .vocab path the program was trying to point to, and fetch_and_preprocess.sh would fail while it was like that.