I'm trying to use the Stanford NLP tools ported to IKVM, but it gives me unhandeled exception.
here's the code I'm using
`string StanfordModelsDirectory = "englishPCFG.ser.gz";
try
{
LexicalizedParser LP = LexicalizedParser.loadModel(StanfordModelsDirectory);
TreebankLanguagePack tlp = new PennTreebankLanguagePack();
GrammaticalStructureFactory gsf = tlp.grammaticalStructureFactory();
Tree parse = LP.apply("what's the largest city in canada?");
parse.pennPrint();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}`
I've referenced IKVM.OpenJDK.Core and stanford-parser, but the message "Could not load file or assembly 'IKVM.OpenJDK.Core, Version=7.1.4532.2, Culture=neutral, PublicKeyToken=13235d27fcbfff58' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)" appears.
I'm using windows 8 (visual studio 2012, .NET 4.5)