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.

Files for suo, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size suo-0.0.2-py3-none-any.whl (4.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size suo-0.0.2.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page