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

Use generics for the type of assigned class in Classifier

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 6.0
    • modules/classification
    • None
    • 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

        1. LUCENE-4651.patch
          9 kB
          Tommaso Teofili

        Activity

          People

            teofili Tommaso Teofili
            teofili Tommaso Teofili
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: