Re: Calculating IDF value more efficiently

2012-05-06 Thread Robert Muir
Look at IndexReader.docFreq On Fri, Apr 27, 2012 at 10:38 PM, Kasun Perera wrote: > This is my program to calculate TF-IDF value for a document in a collection > of documents. This is working fine, but takes lot of time when calculating > the "IDF" values (finding the no of documents which contai

Calculating IDF value more efficiently

2012-04-27 Thread Kasun Perera
This is my program to calculate TF-IDF value for a document in a collection of documents. This is working fine, but takes lot of time when calculating the "IDF" values (finding the no of documents which contains particular term). Is there a more efficient way of finding the no of documents which c