lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Commit Tag Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4782) Let the NaiveBayes classifier have a fallback docCount method if codec doesn't support Terms#docCount()
Date Thu, 21 Feb 2013 02:44:16 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-4782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13582823#comment-13582823
] 

Commit Tag Bot commented on LUCENE-4782:
----------------------------------------

[branch_4x commit] Tommaso Teofili
http://svn.apache.org/viewvc?view=revision&revision=1448210

LUCENE-4782 - backported fix to branch_4x

                
> 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
>            Assignee: 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


Mime
View raw message