Oujago
Coding makes the life easier. This is a factory contains commonly used algorithms and useful links.
Documentation
Installation
Install oujago using pip:
$> pip install oujago
Install from source code:
$> python setup.py clean --all install
APIs
Natural Language Processing
Hanzi Converter
>>> from oujago.nlp import FJConvert
>>> FJConvert.to_tradition('繁简转换器')
'繁簡轉換器'
>>> FJConvert.to_simplify('繁簡轉換器')
'繁简转换器'
Chinese Segment
Support jieba, LTP etc. public segmentation methods, and support moran segmentation just for internal use.
>>> from oujago.nlp import seg
>>> seg("这是一个伸手不见五指的黑夜。")
['这是', '一个', '伸手不见五指', '的', '黑夜', '。']
>>> seg("这是一个伸手不见五指的黑夜。", mode='ltp')
['这', '是', '一个', '伸手', '不', '见', '五', '指', '的', '黑夜', '。']
>>> seg('我不喜欢日本和服', mode='jieba')
['我', '不', '喜欢', '日本', '和服']
>>> seg('我不喜欢日本和服', mode='ltp')
['我', '不', '喜欢', '日本', '和服']
Part-of-Speech
>>> from oujago.nlp.postag import pos
>>> pos('我不喜欢日本和服', mode='jieba')
['r', 'd', 'v', 'ns', 'nz']
>>> pos('我不喜欢日本和服', mode='ltp')
['r', 'd', 'v', 'ns', 'n']
Change Log
0.1.9 (2017.07.06)
NLP moran NER
NLP thulac segment
NLP thulac postag
0.1.8 (2017.06.26)
NLP moran segment
NLP moran postag
0.1.7 (2017.06.20)
NLP jieba segment
NLP LTP segment
NLP jieba POSTag
NLP LTP POSTag
NLP LTP NER
NLP LTP Dependecy Parse
NLP LTP Semantic Role Labeling
0.1.6 (2017.06.19)
Hanzi Converter
Chinese Stopwords
Metadata
Release files for oujago 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| oujago-0.1.9.tar.gz | 35.8 kB | Without provenance | Details for oujago-0.1.9.tar.gz |
Release files / oujago-0.1.9.tar.gz
| Download URL | oujago-0.1.9.tar.gz |
|---|---|
| Size | 35.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c41731976e599b9b829dd64d8ba59e8a386de634b52c03ee478bdc27a644368b
|
|
BLAKE2b-256 checksum How to use checksums |
4a7509d0c8ea9b692f95b4bed504524fc2388d384538080bba8e74349f5eda3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for oujago 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.