public class FrequencyCounter extends JCasFileWriter_ImplBase
JCasFileWriter_ImplBase.NamedOutputStream
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_COVERING_TYPE
Set this parameter if bigrams should only be counted when occurring within a covering type, e.g.
|
static String |
PARAM_FEATURE_PATH
The feature path.
|
static String |
PARAM_FILTER_REGEX |
static String |
PARAM_LOWERCASE
If true, all tokens are lowercased.
|
static String |
PARAM_MIN_COUNT
Tokens occurring fewer times than this value are omitted.
|
static String |
PARAM_REGEX_REPLACEMENT |
static String |
PARAM_SORT_BY_ALPHABET
If true, sort output alphabetically.
|
static String |
PARAM_SORT_BY_COUNT
If true, sort output by count (descending order).
|
static String |
PARAM_STOPWORDS_FILE |
static String |
PARAM_STOPWORDS_REPLACEMENT |
JAR_PREFIX, PARAM_COMPRESSION, PARAM_ESCAPE_DOCUMENT_ID, PARAM_OVERWRITE, PARAM_SINGULAR_TARGET, PARAM_STRIP_EXTENSION, PARAM_TARGET_LOCATION, PARAM_USE_DOCUMENT_ID
Constructor and Description |
---|
FrequencyCounter() |
Modifier and Type | Method and Description |
---|---|
void |
collectionProcessComplete() |
void |
initialize(org.apache.uima.UimaContext context) |
void |
process(org.apache.uima.jcas.JCas aJCas) |
getCompressionMethod, getOutputStream, getOutputStream, getRelativePath, getTargetLocation, isStripExtension, isUseDocumentId
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_FEATURE_PATH
public static final String PARAM_COVERING_TYPE
public static final String PARAM_LOWERCASE
public static final String PARAM_MIN_COUNT
public static final String PARAM_SORT_BY_COUNT
public static final String PARAM_SORT_BY_ALPHABET
public static final String PARAM_STOPWORDS_FILE
public static final String PARAM_STOPWORDS_REPLACEMENT
public static final String PARAM_FILTER_REGEX
public static final String PARAM_REGEX_REPLACEMENT
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
initialize
in class org.apache.uima.fit.component.JCasConsumer_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void process(org.apache.uima.jcas.JCas aJCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public void collectionProcessComplete() throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
collectionProcessComplete
in interface org.apache.uima.analysis_component.AnalysisComponent
collectionProcessComplete
in class JCasFileWriter_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.