我成功导入了咒语,但在使用时得到了一个LookupError
from hunspell import spell
print(spell('Heello'))
---------------------------------------------------------------------------
LookupError Traceback (most recent call last)
<ipython-input-44-d22185ace6e6> in <module>
----> 1 print(spell('Hey'))
LookupError: unknown encoding:
问题是你正在直接调用spell。您应该初始化要使用的词典的拼写:
词典可在以下位置找到:https://github.com/wooorm/dictionaries
相关问题 更多 >
编程相关推荐