擅长:python、mysql、java
<p>您可以从<code>https://github.com/cltk/latin_models_cltk</code>手动下载语料库并将其放在
<code>~/cltk_data/latin/model/</code>文件夹(因此<code>~/cltk_data/latin/model/latin_models_cltk/lemmata/</code>是之后的现有文件夹)。然后您应该能够运行以下各项:</p>
<pre><code>from cltk.stem.lemma import LemmaReplacer
LemmaReplacer('latin').lemmatize('some_latin_here')
</code></pre>
<p>对于同样的希腊语,只需在这些说明中将“拉丁语”替换为“希腊语”<em>。我想(但还没有尝试过)它对其他语言也同样有效。在</p>