You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2013/01/02 10:10:12 UTC
[jira] [Updated] (LUCENE-4651) Use generics for the type of
assigned class in Classifier
[ 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