[
https://issues.apache.org/jira/browse/OPENNLP-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13208272#comment-13208272
]
Joern Kottmann commented on OPENNLP-429:
----------------------------------------
in case the factory class does not exist, the base model throws this exception:
throw new InvalidFormatException(
"Could not find the POS factory class: " + factoryName);
That should be more generic. It doesn't need to mention POS factory. We should
also extend this message a bit and say that the model cannot load a user
extension because it is missing on the classpath.
> Create a Factory to customize the POS Tagger
> --------------------------------------------
>
> Key: OPENNLP-429
> URL: https://issues.apache.org/jira/browse/OPENNLP-429
> 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:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira