Skip to main content

成分分析树转换工具

介绍

这个包的目的在于将数据转换成符合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,方便通过名字直观理解以及通过工作原理图快速理解。

Metadata

Release files for constituency-tree-converter 1.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for constituency-tree-converter 1.0.11
File Size Uploaded
constituency-tree-converter-1.0.11.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for constituency-tree-converter 1.0.11
File Interpreter ABI Platform
constituency_tree_converter-1.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 17.3 kB

Release files / constituency-tree-converter-1.0.11.tar.gz

Download URL constituency-tree-converter-1.0.11.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d9cb6e1b03377ac1343facda17cb0e14078b4bffc704615fc02d7e779b7a083c
BLAKE2b-256 checksum
How to use checksums
42f791a45380f94b6f31a020be0ed88c961e7e7e2013ad1dd3a1be4cedbfd260
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / constituency_tree_converter-1.0.11-py3-none-any.whl

Download URL constituency_tree_converter-1.0.11-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8bd4408dc605937493fc505b07accce1833f5d6e03347b6f30c60a1f055d57e2
BLAKE2b-256 checksum
How to use checksums
44f99dad2110057d14bbc019f4200a57bc3c5bbdbde87a38fe3c32f343363e3e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.11 This release

2 release files

1.0.10

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page