未知

rifmator_engine的Python项目详细描述


这是python的一个小模块,允许您找到已建立的俄语单词的押韵。

使用模块

1)搜索押韵单词

Search rhymes is the method of find_rhyme class Rifmator. To search, simply call this method an instance of the class Rifmator, and pass as a parameter remueve word. If the rhyme is not found will return None, otherwise return a list of rhymes. P. S: If the rhyme is not found poprobute to indicate the emphasis in the word upper case the stressed vowel, because the word is not found in the dictionary and it was not possible to calculate the stress machine.

2)在字典中添加单词

If you need to add a new word to the dictionary, use the add_word method in class Rifmator. In the entered word must include the indication of stress of the upper register of the stressed vowel. After calling the function it will return True or False depending on success or failure adding to the dictionary, respectively.

3)在文件中保存动态字典

All actions happen with a dictionary in memory, then there is work with a dynamic dictionary. If you want something to change in the dictionary had acted upon the next startup use the method save_dicts class Rifmator.

5)配置模块

All module settings are in the file config.py. The following changes are available:
  • 押韵词典
  • ling_dict-语言词典的文件路径
  • 使用维基-是否在分析单词wiktionary时使用语言学研究(需要互联网连接)
  • 学习-自动学习介绍单词

文档的完整版本为:https://github.com/alxmamaev/Rifmator_Engine

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java resultSet next()方法不返回任何值   java向数组中添加元素?   java在字符串中替换代词   使用ajax时java搜索数据库不工作   java tomcat表示此url不支持http方法post   java正在发生什么   java浏览器不生成文件下载对话框   带有CR和CF的java javascript textarea maxlength问题   javamaven:如何配置javadoc来生成所有私有和包   java问题:“用作trywithresources资源的变量应该是final或实际上是final”   java类只是为了语义   java httpclient在glassfish servlet中发布到https时出现“SSL证书错误”   java图形用户界面不可见错误   我的java CORBA聊天应用程序中出现“org.omg.CORBA.COMM_FAILURE:vmcid:SUN minor code:208 completed:Maybe”错误的原因是什么   javascript在服务器端创建电子邮件草稿并在用户客户端打开   java向JComboBox添加隐藏按钮   使用Java是可能的。awt。图像安卓应用程序