You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2013/02/20 15:01:17 UTC
[jira] [Created] (LUCENE-4782) Let the NaiveBayes classifier have a
fallback docCount method if codec doesn't support Terms#docCount()
Tommaso Teofili created LUCENE-4782:
---------------------------------------
Summary: Let the NaiveBayes classifier have a fallback docCount method if codec doesn't support Terms#docCount()
Key: LUCENE-4782
URL: https://issues.apache.org/jira/browse/LUCENE-4782
Project: Lucene - Core
Issue Type: Bug
Components: modules/classification
Reporter: Tommaso Teofili
Fix For: 4.2, 5.0
In _SimpleNaiveBayesClassifier_ _docsWithClassSize_ variable is initialized to _MultiFields.getTerms(this.atomicReader, this.classFieldName).getDocCount()_ which may be -1 if the codec doesn't support doc counts, therefore there should be an alternative way to initialize such a variable with the documents count.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org