AttributeError: 'Word2Vec' object has no attribute 'vector_size'
Traceback (most recent call last):
File "doc2vec.py", line 162, in <module>
train_model.intersect_word2vec_format('../word2vec/sswe-u.txt', binary = False)
File "/Users/bo/anaconda/lib/python2.7/site-packages/gensim/models/word2vec.py", line 1146, in intersect_word2vec_format
raise ValueError("invalid vector on line %s (is this really the text format?)" % (line_no))
ValueError: invalid vector on line 0 (is this really the text format?)
Using readlines(), the first two lines of the model look as:
['137052 50\n',
'<unk>\t-0.5788147\t0.925568\t0.4648884\t0.3540596\t-2.63636\t2.299568\t-0.6639488\t0.6152149\t-0.1693218\t0.2535918\t0.5239199\t0.03204051\t-0.4096407\t-0.1301239\t0.1830793\t-0.8452936\t-1.4038\t-0.3235289\t-1.467552\t-0.4617254\t1.235173\t-1.01539\t0.8925248\t1.236531\t1.10637\t0.9484738\t-1.053025\t0.4563896\t-1.523564\t-0.01358143\t0.5384203\t-2.002354\t0.884596\t1.269964\t-1.649029\t-0.9661105\t0.04843707\t-0.01786563\t1.134794\t0.7832708\t-1.525468\t-1.791098\t-0.984019\t-0.1604346\t0.2929637\t0.64561\t2.001577\t1.381008\t-0.7404164\t1.558096\r\n']
Is this the same issue that was fixed in https://github.com/piskvorky/gensim/issues/388 ?