标签: solr lucene classification naivebayes
使用lucene的SimpleNaiveBayesClassifier SimpleNaiveBayesClassifier#assignClass方法返回ClassificationResult<BytesRef>时,如何获取类别字段的原始值?
SimpleNaiveBayesClassifier
SimpleNaiveBayesClassifier#assignClass
ClassificationResult<BytesRef>
答案 0 :(得分:1)
这就是你想要的:
classificationResult.getAssignedClass().utf8ToString()