You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Joern Kottmann (JIRA)" <ji...@apache.org> on 2013/06/06 10:07:20 UTC

[jira] [Comment Edited] (OPENNLP-581) Add Pluggable Machine Learning support

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

Joern Kottmann edited comment on OPENNLP-581 at 6/6/13 8:06 AM:
----------------------------------------------------------------

Why do we need the Trainer interface? As far as I can see all the work is done by Sequence and Event Trainer implementations.
A Trainer Factory needs to be able to produce both of these trainer types, but we can probably do this with two different factory methods. The user has to determine which trainer type he is training prior calling a factory method.
                
      was (Author: joern):
    Why do we need to Trainer interface? As far as I can see all the work is done by Sequence and Event Trainer implementations.
A Trainer Factory needs to be able to produce both of these trainer types, but we can probably do this with two different factory methods. The user has to determine which trainer type he is training prior calling a factory method.
                  
> Add Pluggable Machine Learning support
> --------------------------------------
>
>                 Key: OPENNLP-581
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-581
>             Project: OpenNLP
>          Issue Type: Improvement
>            Reporter: Joern Kottmann
>
> The OpenNLP Tools can currently only use the classifiers inside the Maxent library. It should be possible to plugin 3rd party machine learning libraries which can be integrated as seamlessly as the Maxent library.
> To achieve this two these tasks need to be solved:
> - Define a MachineLearningFactory which is capable of instantiating a Trainer and Classifer based on a given parameter properties file. The Algorithm name could be the name of the factory to use. Additional the code in OpenNLP Tools need to be refactored to use the factory interface instead of the TrainUtil.
>  
> - Refactor the OpenNLP Tools to use an interface instead of the AbstractModel the interface can be identical to the current MaxentModel with additional support for serialization.
> - To avoid an interface layer between OpenNLP Tools and Maxent the maxent classes should be moved to opennlp.tools.ml.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira