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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

constituency_tree_converter-1.0.11-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file constituency-tree-converter-1.0.11.tar.gz.

File metadata

  • Download URL: constituency-tree-converter-1.0.11.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.2

File hashes

Hashes for constituency-tree-converter-1.0.11.tar.gz
Algorithm Hash digest
SHA256 d9cb6e1b03377ac1343facda17cb0e14078b4bffc704615fc02d7e779b7a083c
MD5 3acf41d6f0242b9bc50407f7d085c63d
BLAKE2b-256 42f791a45380f94b6f31a020be0ed88c961e7e7e2013ad1dd3a1be4cedbfd260

See more details on using hashes here.

File details

Details for the file constituency_tree_converter-1.0.11-py3-none-any.whl.

File metadata

  • Download URL: constituency_tree_converter-1.0.11-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.2

File hashes

Hashes for constituency_tree_converter-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 8bd4408dc605937493fc505b07accce1833f5d6e03347b6f30c60a1f055d57e2
MD5 879a7629e70f4d33d90288ebfb21b020
BLAKE2b-256 44f99dad2110057d14bbc019f4200a57bc3c5bbdbde87a38fe3c32f343363e3e

See more details on using hashes here.

Supported by

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