maxoodf/word2vec

iostream error running w2v_accuracy

Closed this issue · 5 comments

After running "w2v_accurary" and after all analogies on the test file has been "tested", I get this error:

terminate called after throwing an instance of 'std::ios_base::failure[abi:cxx11]'
  what():  basic_ios::clear: iostream error
Aborted

Here is the full input/output:

$ ./w2v_accuracy model.w2v /home/user/questions-words.txt
 capital-common-countries
section accuracy: 0.405082
 capital-world
section accuracy: 0.142876
 currency
section accuracy: 0.585325
 city-in-state
section accuracy: 0.44021
 family
section accuracy: 0.765345
 gram1-adjective-to-adverb
section accuracy: 0.59348
 gram2-opposite
section accuracy: 0.332675
 gram3-comparative
section accuracy: 0.766856
 gram4-superlative
section accuracy: 0.569138
 gram5-present-participle
section accuracy: 0.73709
 gram6-nationality-adjective
section accuracy: 0.379385
 gram7-past-tense
section accuracy: 0.841701
 gram8-plural
section accuracy: 0.835196
 gram9-plural-verbs
terminate called after throwing an instance of 'std::ios_base::failure[abi:cxx11]'
  what():  basic_ios::clear: iostream error
Aborted

Can anyone help me?

I've fixed this issue related to the empty line parsing in a test words file.
You need to update&rebuild sources.

I've cloned the git repository (following the building commands) again, and tried to evaluate my model again, and the same error popup!

hm, can you attach your test words file?

I can not reproduce this issue with your test words file.
I think you did not pull last code changes.