opennlp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damiano Porta <damianopo...@gmail.com>
Subject Re: Why can i not serialize a Dictionary ?
Date Thu, 27 Oct 2016 21:14:37 GMT
Jorn i add the Dictionary here:
https://gist.github.com/anonymous/bc822fb0520c4c42b75748bf4147da34#file-train-java-L15

And unfortunately i only see this error:

java.lang.IllegalStateException: Missing serializer for damiano
at opennlp.tools.util.model.BaseModel.serialize(BaseModel.java:610)

I do not have other info.
Do i have to create a custom Serializer too?




2016-10-27 22:04 GMT+02:00 Joern Kottmann <kottmann@gmail.com>:

> On Thu, 2016-10-27 at 21:18 +0200, Joern Kottmann wrote:
> > On Tue, 2016-10-25 at 18:49 +0200, Damiano Porta wrote:
> > >
> > > i am getting a strange error during the compiling of a NER model.
> > > Basically, the end of the build output is:
> > >
> > >  98:  ... loglikelihood=-13340.018762351776 0.999005934601099
> > >  99:  ... loglikelihood=-13258.358751926637 0.9990120681028991
> > > 100:  ... loglikelihood=-13178.039964721707 0.9990177634974279
> > > Exception in thread "main" java.lang.IllegalStateException: Missing
> > > serializer for *mydictionary*
> > > at opennlp.tools.util.model.BaseModel.serialize(BaseModel.java:610)
> >
> >
> > Can you please post the full exception stack trace?
> >
>
>
> And what is the name of they key you used for the dictionary?
> The dictionary serializers are only mapped by extension.
>
> Jörn
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message