carpedm20 / word2vec-tensorflow

in progress
46 stars 25 forks source link

TypeError: unorderable types: str() > int() #2

Open sunil-sangwan opened 7 years ago

sunil-sangwan commented 7 years ago

Traceback (most recent call last): File "model.py", line 31, in w2v.build_vocab(config['corpus']) File "/home/shark_s/avishkar/deep /example1/Word2Vec.py", line 32, in build_vocab self.counter.extend([list(item) for item in Counter(words).most_common() File "/home/shark_s/avishkar/deep /example1/Word2Vec.py", line 33, in if item[0] > self.min_frequency]) TypeError: unorderable types: str() > int()

bluenight1994 commented 7 years ago

i think it's: if item[1] > self.min_frequency