我在
Python中使用pyenchant包进行拼写检查.我能够成功地使用英语,法语,德语.
另外,我想用意大利语和西班牙语这样做.我使用enchant.list_languages()查看了附魔中可用的词典,我只得到[‘de_DE’,’en_AU’,’en_GB’,’en_US’,’fr_FR’].
我正在寻找如何使用附魔包或任何其他包/技术对意大利语和西班牙语进行拼写检查.
谢谢.
最佳答案 你可以使用Pyenchant的任何myspell,aspell,openoffice.org或ispell字典.这将取决于您安装它们的操作系统.
例如,在Ubuntu上,您可以安装任何这些软件包,例如
sudo apt-get install myspell-it myspell-es
对于Ubuntu 14.04,这里列出了软件包:
http://packages.ubuntu.com/trusty/myspell-dictionary
http://packages.ubuntu.com/trusty/aspell-dictionary
http://packages.ubuntu.com/source/trusty/openoffice.org-dictionaries
http://packages.ubuntu.com/trusty/ispell-dictionary
Windows用户看到http://pythonhosted.org/pyenchant/tutorial.html#windows-users
安装后,字典将在您运行时显示:
enchant.list_languages()