When using lucene's SimpleNaiveBayesClassifier
the SimpleNaiveBayesClassifier#assignClass
method returns an ClassificationResult<BytesRef>
, how can I get the original value of category field?
This is what you want:
classificationResult.getAssignedClass().utf8ToString()