cemoody / lda2vec

MIT License
3.15k stars 628 forks source link

error with spacy.tokens.span.Span' #63

Open tamerahsgs opened 7 years ago

tamerahsgs commented 7 years ago

I have started using spacy recently and i am getting this line of error that object has no attribute get_dependants? Is there a way to fix this?

in opinion_extractor(aspect_token, parsed_sentence) 11 12 #Check for Negative Opinions ---> 13 for negation in parsed_sentence.get_dependants(aspect_token): 14 if negation.deprel == "neg": 15 negation_check = True AttributeError: 'spacy.tokens.span.Span' object has no attribute 'get_dependants'