未知
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时使用语言学研究(需要互联网连接)
- 学习-自动学习介绍单词