0

我正在尝试从 Sergey 安装和运行 Standford NLP 的 .NET 变体。

https://github.com/sergey-tihon/Stanford.NLP.NET

为此,我将他的博客用作自述文件。

https://sergeytihon.com/2013/02/05/nlp-stanford-parser-with-f-net/

我已经安装了 IKMV.NET 并下载了 Standford NLP 的 2.0.4 版本。

https://nlp.stanford.edu/software/lex-parser.shtml

安装完所有内容后,我从 sergey-tihon Github 页面下载了 Stanford.NLP.NET。在VS中打开它后,我得到了错误。我缺少带有 Paket.Restore.targets 文件的 .paket 文件夹。

错误:

Severity    Code    Description Project File    Line    Suppression State
Error       Project "C:\Users\romanovsky_e1\Downloads\Stanford.NLP.NET-master\Stanford.NLP.NET-master\.paket\Paket.Restore.targets" was not imported by "C:\Users\romanovsky_e1\Downloads\Stanford.NLP.NET-master\Stanford.NLP.NET-master\tests\Stanford.NLP.NER.Tests\Stanford.NLP.NER.Tests.csproj" at (27,5), due to the file not existing.  Stanford.NLP.NER.Tests  C:\Users\romanovsky_e1\Downloads\Stanford.NLP.NET-master\Stanford.NLP.NET-master\.paket\Paket.Restore.targets   27  

我还将 KIVM.OpenJDK.*:dll 文件作为程序集添加到 VS 中的所有 NLP 项目中。

我还尝试将包添加到项目中(并且仍然出现错误):

Stanford.NLP.CoreNLP
Stanford.NLP.NER
Stanford.NLP.Parser
Stanford.NLP.POSTagger
Stanford.NLP.Segmenter

错误:

C:\Users\romanovsky_e1\Downloads\Stanford.NLP.NET-master\Stanford.NLP.NET-master\tests\Stanford.NLP.CoreNLP.Tests\Stanford.NLP.CoreNLP.Tests. csproj(126,3): error MSB4019: The imported project "C:\Users\romanovsky_e1\Downloads\Stanford.NLP.NET-master\Stanford.NLP.NET-master\.package\Package.Restore.targets" was not found. Make sure that the expression in the import declaration "..\..\.paket\Paket.Restore.targets" is correct and that the file exists on the disk.

有没有人有这方面的经验并且可以帮助我?

4

0 回答 0