Calculating term and document frequency for multiple word terms

2006-04-10 Thread Vishal Bathija
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

Re: Calculating term and document frequency for multiple word terms

2006-04-10 Thread Erik Hatcher
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