William Colen <william.colen@...> writes:
>
> Try using the version from trunk. There was a bug that can be related to
> this.
>
> I am away from a place were I can check the source.
>
> Regards
> William
>
> Sent from mobile.
> Em 04/01/2013 23:16, "James Kosin" <james.kosin@...> escreveu:
>
> >> Adi,
> >
> > Which sentence detector are you trying to use?
> >
> > I've been able to train the sentence detector model with many sentences
> > and it has managed to figure out how to handle the abbreviations... like
> > Inc., etc., and others.
> >
> > James
> >
>
Hi William and James,
Thanks for the response, I will try using the latest trunk.
I was previously using version 1.5.3 (jar lib).
This is how my detection (after i trained the model) code looks:
String sentences[] = sentenceDetector.sentDetect(testString);
InputStream modelIn = new FileInputStream("models/custom-abbr-sentence
detector.bin");
SentenceModel model = new SentenceModel(modelIn);
SentenceDetectorME sentenceDetector = new
SentenceDetectorME(model);
Thanks,
Adi