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

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -