/Allen_NLP_Dependency_Tree_Utility

Traverse through the Dependency tree Generated using AllenNLP. Can be used to find out the path between any two word of the tree

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Allen_NLP_Dependency_Tree_Utility

Traverse through the Dependency tree Generated using AllenNLP. Can be used to find out the path between any two word of the tree

You need to have the following installed to run this

  • Numpy
  • AllenNLP

(Dowload of the dependency parser's local file requirements would be done through the python file in the first run)

The distance.py returns distance returns the distance as an integer between the two nodes and can be modified easily to return all the attributes of the path