You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@opennlp.apache.org by dhanashree thakur <dk...@gmail.com> on 2014/04/22 13:10:45 UTC
error in Sentence detector program
hi all, I am running sentence detector program in eclipse ,but it gives
errors as,
Exception in thread "main" java.lang.NullPointerException
at
opennlp.tools.util.model.BaseModel.getManifestProperty(BaseModel.java:491)
at
opennlp.tools.util.model.BaseModel.initializeFactory(BaseModel.java:245)
at opennlp.tools.util.model.BaseModel.loadModel(BaseModel.java:237)
at opennlp.tools.util.model.BaseModel.<init>(BaseModel.java:181)
at opennlp.tools.sentdetect.SentenceModel.<init>(SentenceModel.java:95)
at SentenceSplit1.main(SentenceSplit1.java:21)
Please help me regarding this.
Re: error in Sentence detector program
Posted by dhanashree thakur <dk...@gmail.com>.
thank you very much...
when I change .bin file to .zip file in program, it run correctly.
On Tue, Apr 22, 2014 at 7:16 AM, Sasikumar N <sa...@gmail.com> wrote:
> Hi,
> have u downloaded the model file located here(
> http://opennlp.sourceforge.net/models-1.5/en-sent.bin ) and used in your
> code.
>
> Have a look at the examples available in this blog:
> http://www.programcreek.com/2012/05/opennlp-tutorial/, This may be helpful
> for you to identify what you have done wrong.
>
>
> On Tue, Apr 22, 2014 at 4:40 PM, dhanashree thakur <dkthakur611@gmail.com
> >wrote:
>
> > hi all, I am running sentence detector program in eclipse ,but it gives
> > errors as,
> > Exception in thread "main" java.lang.NullPointerException
> > at
> >
> opennlp.tools.util.model.BaseModel.getManifestProperty(BaseModel.java:491)
> > at
> > opennlp.tools.util.model.BaseModel.initializeFactory(BaseModel.java:245)
> > at opennlp.tools.util.model.BaseModel.loadModel(BaseModel.java:237)
> > at opennlp.tools.util.model.BaseModel.<init>(BaseModel.java:181)
> > at
> opennlp.tools.sentdetect.SentenceModel.<init>(SentenceModel.java:95)
> > at SentenceSplit1.main(SentenceSplit1.java:21)
> >
> > Please help me regarding this.
> >
>
>
>
> --
> Regards,
> SASIKUMAR N
>
Re: error in Sentence detector program
Posted by Sasikumar N <sa...@gmail.com>.
Hi,
have u downloaded the model file located here(
http://opennlp.sourceforge.net/models-1.5/en-sent.bin ) and used in your
code.
Have a look at the examples available in this blog:
http://www.programcreek.com/2012/05/opennlp-tutorial/, This may be helpful
for you to identify what you have done wrong.
On Tue, Apr 22, 2014 at 4:40 PM, dhanashree thakur <dk...@gmail.com>wrote:
> hi all, I am running sentence detector program in eclipse ,but it gives
> errors as,
> Exception in thread "main" java.lang.NullPointerException
> at
> opennlp.tools.util.model.BaseModel.getManifestProperty(BaseModel.java:491)
> at
> opennlp.tools.util.model.BaseModel.initializeFactory(BaseModel.java:245)
> at opennlp.tools.util.model.BaseModel.loadModel(BaseModel.java:237)
> at opennlp.tools.util.model.BaseModel.<init>(BaseModel.java:181)
> at opennlp.tools.sentdetect.SentenceModel.<init>(SentenceModel.java:95)
> at SentenceSplit1.main(SentenceSplit1.java:21)
>
> Please help me regarding this.
>
--
Regards,
SASIKUMAR N