CompositeTextStatsCalculator
 with TokenEntropy,
 TokenLengths
 and TopNTokens.@Deprecated public class TokenCounter extends Object
| Constructor and Description | 
|---|
TokenCounter(org.apache.lucene.analysis.Analyzer generalAnalyzer)
Deprecated.  
  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
add(String field,
   String content)
Deprecated.  
  | 
void | 
clear(String field)
Deprecated.  
  | 
Map<String,org.apache.commons.lang3.mutable.MutableInt> | 
getTokens(String field)
Deprecated.  
  | 
TokenStatistics | 
getTokenStatistics(String field)
Deprecated.  
  | 
void | 
setTopN(int topN)
Deprecated.  
  | 
public TokenCounter(org.apache.lucene.analysis.Analyzer generalAnalyzer)
             throws IOException
IOExceptionpublic void add(String field, String content) throws IOException
IOExceptionpublic TokenStatistics getTokenStatistics(String field)
public void setTopN(int topN)
public void clear(String field)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.