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'
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?