Hi,
I was wondering how I can get the document frequency and term
frequency of a phrase in a corpus. I am currently using
IndexReader rd = IndexReader.open(C:\\Documents and
Settings\\Owner\\My Documents\\Thesis\\luceneTest\\index);
Term t1 = new Term(contents,\increases aesthetic\);
TermDocs
Have a look at using SpanNearQuery for phrases, and walking the spans
(via getSpans, I believe).
Erik
On Apr 10, 2006, at 12:12 PM, Vishal Bathija wrote:
Hi,
I was wondering how I can get the document frequency and term
frequency of a phrase in a corpus. I am currently using