sergey-tihon / Stanford.NLP.NET

Stanford NLP for .NET
http://sergey-tihon.github.io/Stanford.NLP.NET/
MIT License
596 stars 123 forks source link

CoreNLP c# sample fails on 'ner' load #32

Closed volhav closed 8 years ago

volhav commented 8 years ago

I faced the following issue with old CoreNLP C# sample:

line 22: props.setProperty("annotators", "tokenize, ssplit, pos, lemma, parse, ner, dcoref"); 

fails on loading ner. I have removed ner and dependent dcoref and sample worked fine.

Could you please check what is wrong with ner or it was my environment issue? (New C# sample contains my comment about this issue and needed to be reverted if it's local problem)

JimSEOW commented 8 years ago

I persevere learning StanfordNLP.net. Finally it pays off. I have tested the latest c# sample code on CoreNLP. It works. Thanks sergey for timely support.

JimSEOW commented 8 years ago

https://github.com/sergey-tihon/Stanford.NLP.NET/blob/master/samples/Stanford.NLP.CoreNLP.CSharp/Program.cs

//ner fails -> dcoref depends on ner

this issues has been discussed before in one of the closed issues [ https://github.com/sergey-tihon/Stanford.NLP.NET/issues/11]. This has to be included.

props.setProperty("ner.useSUTime", "false");
volhav commented 8 years ago

Thanks @Davtomas. I have updated the sample to avoid confusion