Thanks for your response. Does opennlp provide a way to create the *.train file based on a body of text which I provide, or is the *.train file created another way.
Can i use the SentenceDetectME.sentDetect() method without providing a *.train file? --- On Mon, 2/13/12, Aliaksandr Autayeu <aliaksa...@autayeu.com> wrote: > From: Aliaksandr Autayeu <aliaksa...@autayeu.com> > Subject: Re: New to opennlp > To: opennlp-users@incubator.apache.org > Date: Monday, February 13, 2012, 4:29 PM > *.train files are from a training > corpus. They are not part of the OpenNLP > distribution, you have to have your own training corpus to > train your model. > > Aliaksandr > > On Mon, Feb 13, 2012 at 9:34 PM, Michael Collins > <mcollins0...@yahoo.com>wrote: > > > > > Hello Everyone; > > > > I just downloaded the opennlp-1.5.2, and working > through the intro/example > > in the Manual: Developer Documentation using C#. > > > > I've only accomplished a few steps: > > > > java.io.FileInputStream ModelIn = new > java.io.FileInputStream(ModelPath + > > "en-sent.zip"); > > opennlp.tools.sentdetect.SentenceModel SentnModel = > new > > opennlp.tools.sentdetect.SentenceModel(ModelIn); > > opennlp.tools.sentdetect.SentenceDetectorME > SentenceDetectME = new > > > opennlp.tools.sentdetect.SentenceDetectorME(SentnModel); > > java.nio.charset.Charset UTF8charset = > > java.nio.charset.Charset.forName("UTF-8"); > > java.io.FileInputStream fis = new > java.io.FileInputStream("en-sent.train"); > > > > And I don't find the "en-sent.train" file anywhere to > be downloaded. > > I have "en-sent.zip" but there is only the modle and > manifest in that zip. > > > > Any hints? > > > > ~ michael > > > > > > > > >