ModuleNotFoundError Traceback(最近一次调用最后一次)
在 ()
----> 1 从拼写检查器导入拼写检查器
2
3 拼写 = SpellChecker()
4 def 正确拼写(文本):
5 更正文本 = []
1 帧
/usr/local/lib/python3.7/dist-packages/spellchecker/core.py in ()
24 导入 urllib
25
---> 26 从索引器导入 DictionaryIndex
27 从 langdetect 导入 _detect_lang
28
ModuleNotFoundError:没有名为“索引器”的模块
注意:如果由于缺少包而导致导入失败,您可以
使用 !pip 或 !apt 手动安装依赖项。
要查看安装一些常见依赖项的示例,请单击
下方的“打开示例”按钮。 enter code here
最佳答案
您可能已经使用它来安装 pip install spellchecker
, 使用 pip install pyspellchecker
安装.
关于spell-checking - ModuleNotFoundError : No module named 'indexer' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66951471/