Try to rename the dictionary key to xyz.dictionary then the serializer will be mapped correctly.
Jörn On Thu, Oct 27, 2016 at 11:14 PM, Damiano Porta <damianopo...@gmail.com> wrote: > Jorn i add the Dictionary here: > https://gist.github.com/anonymous/bc822fb0520c4c42b75748bf4147da > 34#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 <kottm...@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 > > >