c# - 使用 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
}
解决方案
推荐阅读
- android - Android RecyclerView - 类不是抽象的,也没有实现抽象基类成员
- java - 查询数据库什么效率更高
- java - SpotBugs - 方法忽略 InputStream.read() 的结果
- powerbi - Power BI 度量:聚合依据、筛选依据、分组依据、简单数学
- javascript - 水平滚动 100px
- python - 无法在 Windows 7 上安装 cytoolz
- mysql - MySql Count Rework 和 SUM Rework by Phase
- java - Java 标准输入编码 Windows cmd, Netbeans
- java - 在 selector.select() 中检测 ServerSocketChannel 何时关闭
- php - PHP Site and NodeJS Websocket Application behind the same Nginx server/config