我刚刚开始在Python中使用CLTK(Classic languages toolkit)NLT模块,并希望将其用作拉丁语文本的引理器。每次我尝试导入语料库的初始步骤时,都会出现以下错误:
from cltk.corpus.utils.importer import CorpusImporter
我得到以下错误:
文件“”,第1行,在 ModuleNotFoundError:没有名为“cltk.corpus”的模块
我在Ubuntu上使用“pip3安装cltk”安装了cltk模块,但是dir(cltk)没有将“corpus”识别为cltk的属性
这里有一个使用新CLTK 1.0+的示例https://github.com/cltk/cltk/blob/master/notebooks/CLTK%20Demonstration.ipynb
目前,拉丁语管道支持以下任务:
(见https://docs.cltk.org/en/latest/languages.html#latin)
这是因为CLTK已经更改了它的主要版本(现在是版本1),新的文档在这里https://docs.cltk.org/en/latest/
对于上一个文档,您仍然可以在那里阅读https://legacy.cltk.org/en/latest/
您仍然可以通过执行
pip install cltk==0.1.121
来安装以前的主要版本相关问题 更多 >
编程相关推荐