*.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
>
>
>
>

Reply via email to