-1

我正在为斯坦福解析器使用 Proxem 包装器,并且在 ASP.NET MVC 3 和 4 应用程序中遇到解析问题。它抛出

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an      invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
 at Proxem.Antelope.Parsing.Sentence.a(List`1 A_0)
 at Proxem.Antelope.Parsing.Sentence..ctor(SerializationInfo info, StreamingContext ctxt)
--- End of inner exception stack trace ---

在 WPF 和控制台应用程序中它工作正常。

4

1 回答 1

0

我修好了它。Constructor Parser(string path) 正在Parser(string path, int poolsize)使用 poolsize调用构造函数value = 1。使用Parser(string path, int poolsize)带值的构造函数 -> Parser(yourPath, 0) 使其适用于 MVC 和 WCF。

于 2013-07-10T08:57:26.063 回答