How to get the dependency tree with spaCy?

后端 未结 7 2090
抹茶落季
抹茶落季 2020-12-04 09:31

I have been trying to find how to get the dependency tree with spaCy but I can\'t find anything on how to get the tree, only on how to navigate the tree.

相关标签:
7条回答
  • 2020-12-04 10:05

    I do not have enough knowledge about the parsing yet. However, outcome of my literature study has resulted in knowing that spaCy has a shift-reduce dependency parsing algorithm. This parses the question/sentence, resulting in a parsing tree. To visualize this, you can use the DisplaCy, combination of CSS and Javascript, works with Python and Cython. Furthermore, you can parse using the SpaCy library, and import the Natural Language Toolkit (NLTK). Hope this helps

    0 讨论(0)
提交回复
热议问题