首页 > 解决方案 > 使用 stanford core NLP for .NET 从句子中提取引理时出错

问题描述

我正在 .NET 中尝试stanford nlp。我想从给定的句子中提取引理。当我执行此代码时,我遇到了以下错误。*无法将“edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distim.tagger”作为类路径、文件名或 URL 打开

谁能告诉我我在哪里可以得到那个文件,我应该把那个文件放在哪里。?

我已经添加了示例代码..

               var text = "what is humidity";
                var doc = new edu.stanford.nlp.simple.Document(text);
                var sentences = doc.sentences().toArray();

                foreach (edu.stanford.nlp.simple.Sentence sent in sentences)
                {
                    var temp = sent.lemma(2); //getting error here
                }

标签: c#.netnlpstanford-nlp

解决方案


推荐阅读