You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "William Colen (Commented) (JIRA)" <ji...@apache.org> on 2012/02/10 04:46:03 UTC

[jira] [Commented] (OPENNLP-429) Create a Factory to customize the POS Tagger

    [ https://issues.apache.org/jira/browse/OPENNLP-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13205198#comment-13205198 ] 

William Colen commented on OPENNLP-429:
---------------------------------------

I commited a proposal for the factory. People that would like to implement another factory should sub-class this one.

Issues: to instantiate the factory we have to suppose that it has a known constructor. I don't know if this is good enough, I can't see another way without creating a sophisticated descriptor or using dependency injection.

Next steps: remove direct references to the default context generator and sequence validator; modify the CLI to accept the factory class name.

                
> 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