Coder Social home page Coder Social logo

jiaeyan / chinese-rhymer Goto Github PK

View Code? Open in Web Editor NEW
81.0 3.0 14.0 61.53 MB

轻量中文押韵神器,100%绝对可用,傻瓜式命令行操作,秒速实现烈焰单押,闪电双押,龙卷三押以及海啸式四押,目前版本 v0.2.6。Search for rhymes for Chinese words, with 1, 2, 3 and 4 characters, released on PyPI with current version of 0.2.6.

Home Page: https://pypi.org/project/chrhyme/

License: MIT License

Python 100.00%
chinese rhyme rap poem pinyin

chinese-rhymer's Introduction

中文押韵器 Chinese Rhymer

Build PyPI License

一、简介

这是一款帮助 诗歌爱好者说唱爱好者 寻找押韵灵感的小工具。
只要输入一个目标词,和一些限制条件,该工具就能查询词库中所有满足条件的押韵词。
目前提供 单押双押三押四押 查询功能, 同时支持 俗语科技术语词长扩展押韵

二、安装

系统要求:Python 2 或 3。

$ pip install chrhyme

三、使用

1、要求

该工具根据《汉语拼音方案》对输入词的声母和韵母进行预处理。
输入词长度要求为1-4,任何在该长度以下或以上的输入词视为不合法。该工具会自动去除输入词汉字以外的任何元素。

2、功能:

用例:长江 (cháng jiāng)

  • 声母组合:(ch, j)
  • 全韵母组合:(ang, iang)
  • 半韵母组合:(ang, ang)
  • 声调组合:目前不支持声调押韵。

默认情况下,为得到最大匹配效果,该工具按照 半韵母组合 进行查找。

条件设置

  • 声母押韵:输入想要押相同声母的字的位置,从左数起,1 为, 2 为,12 为长江,顺序任意。任何大于 2 的数字都被视为 2。如果不押声母,输入 0
  • 全韵母押韵:输入想要押全韵母的字的位置,从左数起,1 为, 2 为,12 为长江,顺序任意。任何大于 2 的数字都被视为 2。如果不押全韵母,输入 0

3、命令行

$ chrhyme  

然后,请根据命令行提示进行操作。运行样例如下:

demo

四、版本更新

  • v0.2.6 (06/17/2018)
    1、修正在Windows系统上打开数据文件出错的问题。

  • v0.2.5 (05/11/2018)
    1、开放 单押 功能
    2、支持 扩展押韵,如输入词为报恩,可以查询到一朝天子一朝臣,即长度扩展的匹配词尾部与输入词押韵。
    3、区分 si (思), shi (诗), ji (机) 三类不同发音的 i
    4、扩大词库 (70万细胞词)
    5、兼容Python 2 和 3 所有版本

  • v0.1.5 (05/04/2018)
    1、区分发音不同的 anian,以及 eie

  • v0.1.0 (05/03/2018)
    1、开放 双押三押四押 功能
    2、支持 声母全韵母 押韵

五、相关项目

本项目使用的汉字转拼音系统来自:
汉字拼音转换工具 (Python版)

chinese-rhymer's People

Contributors

atomicvar avatar jiaeyan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.