【问题标题】:How to get category name of lucene's SimpleNaiveBayesClassifier?如何获取 lucene 的 Simple NaiveBayesClassifier 的类别名称?
【发布时间】:2016-04-26 10:43:58
【问题描述】:

使用lucene的SimpleNaiveBayesClassifierSimpleNaiveBayesClassifier#assignClass方法返回ClassificationResult<BytesRef>时,如何获取category字段的原始值?

【问题讨论】:

    标签: solr lucene classification naivebayes


    【解决方案1】:

    这就是你想要的:

    classificationResult.getAssignedClass().utf8ToString()
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-06
      • 1970-01-01
      • 2017-12-24
      相关资源
      最近更新 更多