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 <manjul...@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.
>

Reply via email to