EHowNet Utilities
Project description
E-HowNet Utilities
Introduction
Git
PyPI
Requirements
Python 3.5+
PLY (Python Lex-Yacc) 3.11+
Installation
pip install ehownet -U
Usage
E-HowNet Parser
CLI
ehn-parser <text> [<text> ...]
# Example
ehn-parser \
"{InstitutePlace|場所:telic={or({experiment|實驗:location={~}},{research|研究:location={~}})}}" \
"{facilities|設施:telic={GoUpAndGoDown|上下:theme={飛機|airplane},location={~}}}"
Python API
from ehn.parse import EhnParser
text = '{InstitutePlace|場所:telic={or({experiment|實驗:location={~}},{research|研究:location={~}})}}'
parser = EhnParser()
tree = parser(text, debug=False)
print(tree)
License
Copyright (c) 2019 Mu Yang under the CC-BY-NC-SA 4.0 License. All rights reserved.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ehownet-0.1.1.tar.gz
(4.7 kB
view hashes)