semvec/pypi-packages huggingface dataset:
xieyin 0.0.3
Generate Chinese homophonic sentences
License: MIT
Requires Python: >=3.4


Use function xieyin(sentence,pattern,accurate).

Example:



from xieyin import xieyin,yintostr

xieyin('谐音字符串',pattern=0,accurate=True)

yintostr('xie yin zi fu chuan',sep='',tone=False)

If you are not interested in using it as a model,

you can do this:



from xieyin import main

main()