Dependency Parsing NLP

244 Views Asked by At

I'm using stanza/spacy nlp for finding the dependency parsing between words. For example doc=nlp("His home was in violation of local and state zoning and environmental regulations, and there was no access to a road"). keyword={""changes"": [""no access""], ""features"": [""road""]}. The values of variable keyword ,"no access" and "road" are present in doc. If both of this words has any relation then I need to print "True". If no relation then print False. How can I write this code ? Can anyone please help?

0

There are 0 best solutions below