ruidan / Unsupervised-Aspect-Extraction

Code for acl2017 paper "An unsupervised neural attention model for aspect extraction"
Apache License 2.0
338 stars 117 forks source link

Attribute Error #28

Open nameisdheeraj opened 4 years ago

nameisdheeraj commented 4 years ago

Im facing this issue. Can anyone help me resolve this? Traceback (most recent call last): File "train.py", line 107, in model = create_model(args, overall_maxlen, vocab) File "D:\Projects\Epilepsy project\Unsupervised-Aspect-Extraction-master\code\model.py", line 52, in create_model emb_reader = EmbReader(args.emb_path, emb_dim=args.emb_dim) File "D:\Projects\Epilepsy project\Unsupervised-Aspect-Extraction-master\code\w2vEmbReader.py", line 21, in init model = gensim.models.Word2Vec.load(emb_path) File "C:\Users\namei.conda\envs\py27\lib\site-packages\gensim\models\word2vec.py", line 1485, in load model = super(Word2Vec, cls).load(*args, kwargs) File "C:\Users\namei.conda\envs\py27\lib\site-packages\gensim\utils.py", line 248, in load obj = unpickle(fname) File "C:\Users\namei.conda\envs\py27\lib\site-packages\gensim\utils.py", line 912, in unpickle return _pickle.loads(f.read()) AttributeError: 'module' object has no attribute 'call_on_class_only'**