项目作者: Lyxn

项目描述 :
tools for dependency grammar
高级语言: Python
项目地址: git://github.com/Lyxn/dep-tree.git
创建时间: 2019-12-08T12:27:56Z
项目社区:https://github.com/Lyxn/dep-tree

开源协议:

下载


Dep-Tree

tools for dependency grammar

Usage

parse tree in s-expression

  1. python tree.py $FILE

simple tree distance

  1. python tree_dist.py $FILE0 $FILE1

Demo

  1. # 我 今天 回家 吃 晚饭
  2. (HED 回家
  3. (SBV 我)
  4. (ADV 今天)
  5. (COO
  6. (VOB 晚饭)
  7. )
  8. )
  9. # 今天 我 不 回家 吃 晚饭
  10. (HED 回家
  11. (SBV 我)
  12. (ADV 今天)
  13. (ADV 不)
  14. (COO
  15. (VOB 晚饭)
  16. )
  17. )
  18. Tree dist=1.0

Demo From HIT-LTP

dep0

dep1

Required Packages

zss 1.2.0