lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Total of term frequencies
Date Tue, 18 Apr 2017 09:23:37 GMT
I think you want to use the TermsEnum.totalTermFreq method?

Mike McCandless

http://blog.mikemccandless.com

On Sun, Apr 16, 2017 at 11:36 AM, Manjula Wijewickrema <manjula53@gmail.com>
wrote:

> Hi,
>
> Is there any way to get the total count of terms in the Term Frequency
> Vector  (tvf)? I need to calculate the Normalized term frequency of each
> term in my tvf. I know how to obtain the length of the tvf, but it doesn't
> work since I need to count duplicate occurrences as well.
>
> Highly appreciate your kind response.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message