Skip to content

[Bug] AttributeError: 'Word2Vec' object has no attribute 'syn1' #8

@zhanghao-py

Description

@zhanghao-py

File "/home/zhanghao10/.jumbo/lib/python2.7/threading.py", line 504, in run
self.__target(_self.__args, *_self.__kwargs)
File "/home/zhanghao10/sentence2vec-master/word2vec.py", line 855, in worker_train
for sent_no, sentence in job)
File "/home/zhanghao10/sentence2vec-master/word2vec.py", line 855, in
for sent_no, sentence in job)
File "/home/zhanghao10/sentence2vec-master/word2vec.py", line 985, in train_sent_vec_sg
l2a = deepcopy(model.syn1[word2.point]) # 2d matrix, codelen x layer1_size
AttributeError: 'Word2Vec' object has no attribute 'syn1'

the Word2Vec model has attribute 'syn1', please check!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions