maxoodf / word2vec

word2vec++ is a Distributed Representations of Words (word2vec) library and tools implementation, written in C++11 from the scratch
Apache License 2.0
132 stars 24 forks source link

iostream error running w2v_accuracy #4

Closed zppinto closed 6 years ago

zppinto commented 6 years ago

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?

maxoodf commented 6 years ago

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

zppinto commented 6 years ago

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

maxoodf commented 6 years ago

hm, can you attach your test words file?

zppinto commented 6 years ago

Sure! questions-words-pt.txt

maxoodf commented 6 years ago

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