我正在尝试使用 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 unsupported
将 DLL library
放入错误进入项目主目录
关于asp.net - 无法为 .net 安装 "LemmatizerPrebuiltCompact"库 - Visual Studio 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58517007/