You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ko...@apache.org on 2014/02/28 01:49:39 UTC
svn commit: r1572793 - in /lucene/dev/trunk/lucene: CHANGES.txt
classification/src/java/org/apache/lucene/classification/SimpleNaiveBayesClassifier.java
Author: koji
Date: Fri Feb 28 00:49:39 2014
New Revision: 1572793
URL: http://svn.apache.org/r1572793
Log:
LUCENE-5466: query is always null in countDocsWithClass() of SimpleNaiveBayesClassifier.
Modified:
lucene/dev/trunk/lucene/CHANGES.txt
lucene/dev/trunk/lucene/classification/src/java/org/apache/lucene/classification/SimpleNaiveBayesClassifier.java
Modified: lucene/dev/trunk/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/CHANGES.txt?rev=1572793&r1=1572792&r2=1572793&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/CHANGES.txt (original)
+++ lucene/dev/trunk/lucene/CHANGES.txt Fri Feb 28 00:49:39 2014
@@ -103,6 +103,9 @@ Bug fixes
* LUCENE-5432: EliasFanoDocIdSet: Fix number of index entry bits when the maximum
entry is a power of 2. (Paul Elschot via Adrien Grand)
+* LUCENE-5466: query is always null in countDocsWithClass() of SimpleNaiveBayesClassifier.
+ (Koji Sekiguchi)
+
Test Framework
* LUCENE-5449: Rename _TestUtil and _TestHelper to remove the leading _.
Modified: lucene/dev/trunk/lucene/classification/src/java/org/apache/lucene/classification/SimpleNaiveBayesClassifier.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/classification/src/java/org/apache/lucene/classification/SimpleNaiveBayesClassifier.java?rev=1572793&r1=1572792&r2=1572793&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/classification/src/java/org/apache/lucene/classification/SimpleNaiveBayesClassifier.java (original)
+++ lucene/dev/trunk/lucene/classification/src/java/org/apache/lucene/classification/SimpleNaiveBayesClassifier.java Fri Feb 28 00:49:39 2014
@@ -88,8 +88,8 @@ public class SimpleNaiveBayesClassifier
this.textFieldNames = textFieldNames;
this.classFieldName = classFieldName;
this.analyzer = analyzer;
- this.docsWithClassSize = countDocsWithClass();
this.query = query;
+ this.docsWithClassSize = countDocsWithClass();
}
private int countDocsWithClass() throws IOException {