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 2016/12/25 20:35:58 UTC

[jira] [Closed] (OPENNLP-870) Please Make ContextGenerator a Generic Type

     [ https://issues.apache.org/jira/browse/OPENNLP-870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joern Kottmann closed OPENNLP-870.
----------------------------------
    Resolution: Fixed

> Please Make ContextGenerator a Generic Type
> -------------------------------------------
>
>                 Key: OPENNLP-870
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-870
>             Project: OpenNLP
>          Issue Type: Improvement
>          Components: Machine Learning
>            Reporter: Daniel Russ
>            Assignee: Joern Kottmann
>            Priority: Minor
>             Fix For: 1.7.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> public interface ContextGenerator<T> {
>   /**
>    * Builds up the list of contextual predicates given an Object.
>    */
>   public String[] getContext(T o);
> }
> If this is a generic method, it makes writing ContextGenerators easier to debug at compile time.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)