I am not sure, I never tried Hadoop, but maybe your issue is that Java
can't access Hadoop file system, isn't it?
Maybe you should simple add the models to a jar so the models are in the
classpath and read it as a resource:
InputStream modelIn = this.getClass().getResourceAsStream("sentence.model");
SentenceModel model = new SentenceModel(modelIn);
SentenceDetectorME sentenceDetector = new SentenceDetectorME(model);
modelIn.close();
On Wed, Jun 6, 2012 at 11:36 PM, giri <[email protected]> wrote:
> i'm not able to load ModelIN either from HDFS or local file system.
>
> On Thu, Jun 7, 2012 at 5:04 AM, James Kosin <[email protected]> wrote:
>
> > What problems are you having?
> >
> > James
> >
> > On 6/6/2012 1:38 PM, giri wrote:
> > > Hi Friends,
> > >
> > > I want to use OPenNLP in Mapreduce programming, but i couldn't able to
> > load
> > > the OpenNLP model.
> > >
> > > if any one have the idea or code please help me.
> > >
> > > Regards,
> > > Giri.
> > >
> >
> >
> >
>