asp.net - 无法为 .net 安装 "LemmatizerPrebuiltCompact"库 - Visual Studio 错误

标签 asp.net visual-studio dll lemmatization sharpnlp

我正在尝试使用 Lemmatizer在我的 asp.net 代码(c#)中。为此,我应该安装 4 个库,它们是:LemmaSharp , LemmaSharpPrebuilt , Lzma#LemmatizerPrebuiltCompact
我在 NuGet 上找到了前 3 个库,但我找不到 LemmatizerPrebuiltCompact图书馆。因此,当我编写以下代码时:

ILemmatizer lmtz = new LemmatizerPrebuiltCompact(LemmaSharp.LanguagePrebuilt.English);

我在 LemmatizerPrebuiltCompact 上遇到以下错误正如预期的那样:

Error CS0246 The type or namespace name 'LemmatizerPrebuiltCompact' could not be found (are you missing a using directive or an assembly reference?)



尝试 #1

我尝试安装 LemmatizerPrebuiltCompact.dll库并将其添加到项目中,但是当我更改项目目录时,它消失了(PS:我希望它可以工作,或者项目目录已更改)。因此,我尝试再次添加它,但我不能。此外,我收到以下错误:

The reference is invalid or unsupported



尝试 #2

所以,我尝试安装 Sparc.TagCloud图书馆。当我这样做时,第一个错误消失了,但它在 LemmaSharp.LanguagePrebuilt.English 上显示错误:

Error CS0433 The type 'LanguagePrebuilt' exists in both 'LemmaSharpPreBuilt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and 'LemmaSharpPrebuilt, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' myMLAppML.ConsoleApp



我认为这个错误自从 Sparc.TagCloud 版本是 0.0.1 就出现了,虽然 LemmaSharp 版本是 1.0.1。

有什么问题?

有谁知道我能做些什么来解决这个问题?

最佳答案

我已经解决了The reference is invalid or unsupportedDLL library 放入错误进入项目主目录

关于asp.net - 无法为 .net 安装 "LemmatizerPrebuiltCompact"库 - Visual Studio 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58517007/

相关文章:

javascript - 如何返回JSON数据类似于XML从数据库asp.net返回数据的方式

c# - * 运算符必须应用于代码中的指针错误

c++ - 为什么这个绕行函数会使程序崩溃?

c - Microsoft Visual Studio 中的外部链接问题

c# - yyyy-dd-MM 格式日期的 DateTime.TryParse 问题

c# - 尝试访问数据库 C# asp.net 时源附近出现语法错误

asp.net - Request.Params ["key"] 做什么?

c# - ReSharper 在 "else"上自动插入大括号

visual-studio - 转到测试 (F12) 在 Visual Studio 的测试资源管理器中不起作用

每次打开存储库时,Git GUI 都会崩溃