lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tommaso Teofili (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-4651) Use generics for the type of assigned class in Classifier
Date Wed, 02 Jan 2013 09:10:12 GMT

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

Tommaso Teofili updated LUCENE-4651:
------------------------------------

    Attachment: LUCENE-4651.patch

proposed patch
                
> Use generics for the type of assigned class in Classifier
> ---------------------------------------------------------
>
>                 Key: LUCENE-4651
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4651
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/classification
>            Reporter: Tommaso Teofili
>            Priority: Minor
>             Fix For: 5.0
>
>         Attachments: LUCENE-4651.patch
>
>
> Currently Classifier#assignClass returns a ClassificationResult which holds the class
as a String while there are use cases where this would be not optimal as assigned labels types
could be known upfront, therefore having a _Classifier<T>_ returning a _ClassificationResult<T>_
would be better.
> Side node: current implementations could be improved by using _BytesRef_ instead of _String_
.

--
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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message