You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@opennlp.apache.org by Damiano Porta <da...@gmail.com> on 2016/12/16 13:34:02 UTC

Categorizer

Hello!
can i use/pass a list of custom feature generators into a doccat model via
XML?
Like NER models for example.

Thanks
Damiano

Re: Categorizer

Posted by Damiano Porta <da...@gmail.com>.
Ok, thanks!

2016-12-19 14:32 GMT+01:00 Joern Kottmann <ko...@gmail.com>:

> Hello,
>
> you will need to do this for training, if you load the model OpenNLP will
> load this class for you.
> If it is not on the class path you will get an error indicating that.
>
> Jörn
>
> On Fri, Dec 16, 2016 at 7:26 PM, Damiano Porta <da...@gmail.com>
> wrote:
>
> > Jorn, ok so for this reason i must pass those custom generators ro train
> > and to use the model right ? everytime ?
> >
> > 2016-12-16 16:05 GMT+01:00 Joern Kottmann <ko...@gmail.com>:
> >
> > > Hello,
> > >
> > > no, sadly this is not possible, you will have to provide a custom
> factory
> > > class which wires everything up for you.
> > >
> > > HTH,
> > > Jörn
> > >
> > > On Fri, Dec 16, 2016 at 2:34 PM, Damiano Porta <damianoporta@gmail.com
> >
> > > wrote:
> > >
> > > > Hello!
> > > > can i use/pass a list of custom feature generators into a doccat
> model
> > > via
> > > > XML?
> > > > Like NER models for example.
> > > >
> > > > Thanks
> > > > Damiano
> > > >
> > >
> >
>

Re: Categorizer

Posted by Joern Kottmann <ko...@gmail.com>.
Hello,

you will need to do this for training, if you load the model OpenNLP will
load this class for you.
If it is not on the class path you will get an error indicating that.

Jörn

On Fri, Dec 16, 2016 at 7:26 PM, Damiano Porta <da...@gmail.com>
wrote:

> Jorn, ok so for this reason i must pass those custom generators ro train
> and to use the model right ? everytime ?
>
> 2016-12-16 16:05 GMT+01:00 Joern Kottmann <ko...@gmail.com>:
>
> > Hello,
> >
> > no, sadly this is not possible, you will have to provide a custom factory
> > class which wires everything up for you.
> >
> > HTH,
> > Jörn
> >
> > On Fri, Dec 16, 2016 at 2:34 PM, Damiano Porta <da...@gmail.com>
> > wrote:
> >
> > > Hello!
> > > can i use/pass a list of custom feature generators into a doccat model
> > via
> > > XML?
> > > Like NER models for example.
> > >
> > > Thanks
> > > Damiano
> > >
> >
>

Re: Categorizer

Posted by Damiano Porta <da...@gmail.com>.
Jorn, ok so for this reason i must pass those custom generators ro train
and to use the model right ? everytime ?

2016-12-16 16:05 GMT+01:00 Joern Kottmann <ko...@gmail.com>:

> Hello,
>
> no, sadly this is not possible, you will have to provide a custom factory
> class which wires everything up for you.
>
> HTH,
> Jörn
>
> On Fri, Dec 16, 2016 at 2:34 PM, Damiano Porta <da...@gmail.com>
> wrote:
>
> > Hello!
> > can i use/pass a list of custom feature generators into a doccat model
> via
> > XML?
> > Like NER models for example.
> >
> > Thanks
> > Damiano
> >
>

Re: Categorizer

Posted by Joern Kottmann <ko...@gmail.com>.
Hello,

no, sadly this is not possible, you will have to provide a custom factory
class which wires everything up for you.

HTH,
Jörn

On Fri, Dec 16, 2016 at 2:34 PM, Damiano Porta <da...@gmail.com>
wrote:

> Hello!
> can i use/pass a list of custom feature generators into a doccat model via
> XML?
> Like NER models for example.
>
> Thanks
> Damiano
>