MediaUncovered / NewsAnalysis

use word embeddings to uncover bias in newspapers
5 stars 1 forks source link

bug fix model evaluation #13

Closed Tilana closed 7 years ago

Tilana commented 7 years ago

evaluating gensim word2vec model with accuracy function yields empty arrays

Tilana commented 7 years ago

check parameter restrict_vocab, which ignores all analogies that contain a word with the frequency rank < restrict_vocab, https://groups.google.com/forum/#!topic/gensim/ZR9Oc1CRsqo

Tilana commented 7 years ago

fixed by solving generator vs iterator issue in commit 5852beb4e0fe19b28ffd1554115bdbf4312251ba