Skip to main content

constituency tree converter

Project description

成分分析树转换工具

介绍

这个包的目的在于将数据转换成符合constituency tree输入的格式,解决业界没有此类工具的问题(没发现~)。

从NLTK标注出来的数据集来看,有点反直觉,标注起来很麻烦。

故提供一个LabelTree类,您可以通过这个类转换成符合nltk标注格式的数据出来。

install

pip install constituency-tree-converter

工作原理图

converter functions

More Usage:

更多请参考tests/。

  1. convert NLTK tree to LabelTree
  2. convert NLTK tree to sequence

历史

  1. 项目更名啦,从constituency-tree-labeling-tool改成constituency-tree-converter,方便通过名字直观理解以及通过工作原理图快速理解。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

constituency-tree-converter-1.0.11.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page