Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gensim error #13

Open
kuraga opened this issue Aug 6, 2020 · 0 comments
Open

Gensim error #13

kuraga opened this issue Aug 6, 2020 · 0 comments

Comments

@kuraga
Copy link
Contributor

kuraga commented Aug 6, 2020

(on train phase)

Traceback (most recent call last):                                                                                                                                                                                                            
  File "train.py", line 101, in <module>                                                                                                                                                                                                      
    model = create_model(args, overall_maxlen, vocab)                                                                                                                                                                                         
  File "/home/a.kurakin/gosfeedback/Attention-Based-Aspect-Extraction/code/model.py", line 26, in create_model                                                                                                                                
    emb_reader = EmbReader(os.path.join("..", "preprocessed_data", args.domain), args.emb_name)                                                                                                                                               
  File "/home/a.kurakin/gosfeedback/Attention-Based-Aspect-Extraction/code/w2vEmbReader.py", line 25, in __init__                                                                                                                             
    model = gensim.models.KeyedVectors.load(emb_path)                                                                                                                                                                                         
  File "/opt/miniconda3/envs/gosfeedback1a/lib/python3.6/site-packages/gensim/utils.py", line 281, in load                                                                                                                                    
    obj = unpickle(fname)                                                                                                                                                                                                                     
  File "/opt/miniconda3/envs/gosfeedback1a/lib/python3.6/site-packages/gensim/utils.py", line 933, in unpickle                                                                                                                                
    return _pickle.load(f, encoding='latin1')                                                                                                                                                                                                 
AttributeError: Can't get attribute 'Word2VecKeyedVectors' on <module 'gensim.models.keyedvectors' from '/opt/miniconda3/envs/gosfeedback1a/lib/python3.6/site-packages/gensim/models/keyedvectors.py'>    
kuraga added a commit to kuraga/Attention-Based-Aspect-Extraction that referenced this issue Aug 6, 2020
kuraga added a commit to kuraga/Attention-Based-Aspect-Extraction that referenced this issue Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant