Preprocess_embedding.py numpy error
aravindchaluvadi opened this issue · comments
This error was occurring while running the "./preprocess_embeddings.sh" after which the rest of the code ran and out put was generated , but however due to the below error i was not able to successfully run the "th convert.lua" because of the below error did not generate a p[articular file which was required by the "th convert.lua" command
Can someone help me in this and i am running this in python2 virtual environment only
Traceback (most recent call last):
File "preprocess_embedding.py", line 76, in
main()
File "preprocess_embedding.py", line 49, in main
word2embedding[line[0]] = np.asarray(map(float, line[1 : ]))
ValueError: invalid literal for float(): 1