Package org.apache.tika.eval.textstats
Class TopNTokens
- java.lang.Object
-
- org.apache.tika.eval.textstats.TopNTokens
-
- All Implemented Interfaces:
TextStatsCalculator
,TokenCountStatsCalculator<TokenIntPair[]>
public class TopNTokens extends Object implements TokenCountStatsCalculator<TokenIntPair[]>
-
-
Constructor Summary
Constructors Constructor Description TopNTokens(int topN)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenIntPair[]
calculate(TokenCounts tokenCounts)
-
-
-
Method Detail
-
calculate
public TokenIntPair[] calculate(TokenCounts tokenCounts)
- Specified by:
calculate
in interfaceTokenCountStatsCalculator<TokenIntPair[]>
-
-