Metadata-Version: 2.1
Name: pinyinsplit
Version: 0.1.2
Summary: A Python library to split a Chinese Pinyin phrase into possible permutations of Chinese Pinyin words
Home-page: https://github.com/throput/pinyinsplit
Author: Thomas Lee
Author-email: thomaslee@throput.com
License: UNKNOWN
Keywords: chinese pinyin
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Text Processing :: Linguistic
Requires-Dist: pygtrie (>=2.3)

pinyinsplit
===========

This is a Python library for splitting a Chinese Pinyin phrase into possible 
permutations of valid Pinyin words.

Usage
=====

Some examples of using the library are as follows:

>>> from pinyinsplit import PinyinSplit
>>> pys = PinyinSplit()
>>> pys.split('XiangGangDaXue')
[['Xiang', 'Gang', 'Da', 'Xue'], ['Xiang', 'Gang', 'Da', 'Xu', 'e'], ['Xi', 'ang', 'Gang', 'Da', 'Xue'], ['Xi', 'ang', 'Gang', 'Da', 'Xu', 'e']]
>>> pys.split('shediaoyingxiongchuan')
[['she', 'diao', 'ying', 'xiong', 'chuan'], ['she', 'diao', 'ying', 'xiong', 'chu', 'an'], ['she', 'di', 'ao', 'ying', 'xiong', 'chuan'], ['she', 'di', 'ao', 'ying', 'xiong', 'chu', 'an']]
>>> pys.split('shediaoyingxiongchuanxyz')
[]


