Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4651

Use generics for the type of assigned class in Classifier

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: modules/classification
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      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 .

        Attachments

          Activity

            People

            • Assignee:
              teofili Tommaso Teofili
              Reporter:
              teofili Tommaso Teofili

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment