parsetron:自然语言语义解析器

时间:2021-05-13 19:01:37
【文件属性】:
文件名称:parsetron:自然语言语义解析器
文件大小:150KB
文件格式:ZIP
更新时间:2021-05-13 19:01:37
Python Parsetron-自然语言语义解析器 自然语言语义解析器 安装 pip install parsetron Parsetron在Python 2.7和Pypy下进行了测试。 它尚不支持Python 3。 文档和教程 快速开始 以下是语法分析灯光上的自然语言说明: from parsetron import Set , Regex , Optional , OneOrMore , Grammar , RobustParser class LightGrammar ( Grammar ): action = Set ([ 'change' , 'flash' , 'set' , 'blink' ]) light = Set ([ 'top' , 'middle' , 'bottom' ]) color = Regex ( r'(red|yellow|blue|o
【文件预览】:
parsetron-master
----.gitignore(397B)
----setup.cfg(21B)
----README.rst(3KB)
----test()
--------pprofile.sh(256B)
--------test_grammars.py(470B)
--------run_time_parsetron.sh(123B)
--------profile.sh(114B)
--------time_parsetron.py(3KB)
--------test_parsetron.py(20KB)
----CONTRIBUTING.rst(3KB)
----docs()
--------make.bat(7KB)
--------conf.py(13KB)
--------index.rst(2KB)
--------tutorial.rst(15KB)
--------api.rst(1KB)
--------watch_py_change.sh(114B)
--------advanced.rst(7KB)
--------images()
--------_static()
--------Makefile(8KB)
--------quickstart.rst(12KB)
----LICENSE(11KB)
----HISTORY.rst(183B)
----parsetron()
--------grammars()
--------__init__.py(1KB)
--------parsetron.py(101KB)
----requirements.txt(137B)
----MANIFEST.in(100B)
----setup.py(2KB)
----.travis.yml(383B)
----tox.ini(495B)
----AUTHORS.rst(226B)
----Makefile(2KB)

网友评论