Skip to main content

中英文缩写转化

Project description

SUO

Pypi MIT License stars

🐢 suo 是一个「中英文缩写转化」的工具包。

1 功能

  • suo.suo: 缩写
  • suo.kuo: 扩写

2 安装

⚠️注意:

仅支持 Python 的 3.6 以上版本;

2.1 使用 pip 安装

pip install suo

2.2 从代码库安装

git clone https://github.com/Ailln/suo.git
cd suo && python setup.py install

3 使用

3.1 缩写

  1. 获得缩写

    from suo import suo
    
    result = suo("阿伟死了")
    print(result)
    # "awsl"
    

3.2 扩写

  1. 获得扩写

    from suo import kuo
    
    result = kuo("awsl")
    print(result)
    # "阿伟死了"
    
  2. 获得所有可能的扩写

    from suo import kuo
    
    result = kuo("awsl", show_all=True)
    print(result)
    # ["阿伟死了", "啊我死了']
    

4 许可

5 参考

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

suo-0.0.5.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

suo-0.0.5-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page