Open HussainYa opened 4 years ago
for the embedding am using ntua_twitter_300.txt.
"embeddings_file": "ntua_twitter_300"
$ python -m model.pretraining.sentiment2017
Running on:cpu
loading word embeddings...
Didn't find embeddings cache file ntua/embeddings/ntua_twitter_300.txt
Indexing file ntua/embeddings/ntua_twitter_300.txt ...
{300, 310}
Found 804871 word vectors.
Traceback (most recent call last):
File "opt/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main "main", mod_spec)
File "opt/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals)
File "ntua/model/pretraining/sentiment2017.py", line 41, in
Is there a fix for this? I am currently facing exactly the same issue.
Thanks a lot!
I found out the problem myself. The reason why I got this error was because of the fact that I was using a newer version of numpy than v1.13.1, which is listed in requirements.txt. I hope this helps!
Kindly, help me to solve the problem with this error which I receive when doing the steps to run python -m model.pretraining.sentiment2017
File "/utils/load_embeddings.py", line 93, in load_word_vectors embeddings = numpy.array(embeddings, dtype=numpy.float32) ValueError: setting an array element with a sequence.
Thanks