opennlp-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Katrin Tomanek (Commented) (JIRA)" <>
Subject [jira] [Commented] (OPENNLP-429) Create a Factory to customize the POS Tagger
Date Wed, 15 Feb 2012 09:04:03 GMT


Katrin Tomanek commented on OPENNLP-429:

when I use the trainer tool with this code

POSTaggerTrainerTool trainerTool = new POSTaggerTrainerTool();"opennlp",args);

I get the following NullPointerException

Exception in thread "main" java.lang.NullPointerException
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(

--> this is presumably because I didn't explicitly set a factory; in this case, either
the trainer tool needs to be changed (factory as an obligatory parameter) or you need to use
a default factory if none is given
> Create a Factory to customize the POS Tagger
> --------------------------------------------
>                 Key: OPENNLP-429
>                 URL:
>             Project: OpenNLP
>          Issue Type: New Feature
>          Components: Command Line Interface, POS Tagger
>    Affects Versions: tools-1.5.3-incubating
>            Reporter: William Colen
>            Assignee: William Colen
>            Priority: Minor
>             Fix For: tools-1.5.3-incubating
> Should provide a mechanism to customize the POS Tagger using a factory. The component
should get the following objects from the factory:
> - Context Generator
> - Sequence Validator
> - POS Dictionary implementation
> One issue to solve is how to initialize the objects. For example, the Sequence Validator
might be initialized using a POS Dictionary.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message