基于马拉雅拉姆语形态学分析器的拼写检查器

mlmorph_spellchecker的Python项目详细描述


PyPI Version

这是一个基于Malayalam morphology analyser - mlmorph的马拉雅拉姆语拼写器。

安装

python 3是必需的。建议与venv一起使用

$ pip install mlmorph_spellchecker

用法

frommlmorphimportAnalyserfrommlmorph_spellcheckerimportspellcheck,getSuggestionsanalyser=Analyser()ifspellcheck(word,analyser)isTrue:print('%s ✔️'%(word))else:print('%s ❌ Suggestions: %s'%(word,getSuggestions(word,analyser)))

命令行界面

$ python -m mlmorph_spellchecker --help
usage: __main__.py [-h] word

positional arguments:
word        word to spellcheck

optional arguments:
-h, --help  show this help message and exit

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

推荐PyPI第三方库


热门话题
java如何在安卓 studio中使用调用jaxws web服务的jar文件   java双时间模拟时钟不打印两个不同的时间   java Jackson反序列化处理不带字段的生成值   多线程在java同步中读锁的目的是什么   为什么java中有这么多获取日期时间的方法?   java从listview中的TextView获取数据   java是否可以定义如何对枚举进行(反)序列化以在枚举内持久化?   Java:异常处理我的catch()有问题   VMWare java SDK:可用的PerfMetricID何时不报告数据?   exec在Java中执行命令而不重定向输出   java使用SpringXML配置实现观察者模式?   java在竹笔平板电脑中使用JPen