Coder Social home page Coder Social logo

geasyheart / constituency-tree-converter Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 117 KB

constituency tree converter

Home Page: https://pypi.org/project/constituency-tree-converter/

License: MIT License

Python 100.00%
constituency-parser constituency-tree

constituency-tree-converter's Introduction

成分分析树转换工具

介绍

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

constituency-tree-converter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

joiike

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.