python - How can i get the dependency path between two words in a spaCy doc object -


i using spacy python 2.7 , create doc object explained here

i need dependency path between 2 named enteties members of doc.ents

is there elegant way of doing so?

i found this explaining how dependency tree, don't need tree, need simple list of words can convert vector , use in machine learning algorithm

thanks!


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -