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()
Metadata
Release files for xieyin 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xieyin-0.0.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Release files / xieyin-0.0.3-py2.py3-none-any.whl
| Download URL | xieyin-0.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 41.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9abc6e50c1151ca8e64dfb8b0c6831eb5a26e7d9b97b82096907329e2404b352
|
|
BLAKE2b-256 checksum How to use checksums |
2a93ede81f6fcf88890785c350cf1a235f72d24e7be14a876305dc163b4a434c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.2
|