public class OpenNlpSentenceTrainer
extends org.apache.uima.fit.component.JCasConsumer_ImplBase
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_ABBREVIATION_DICTIONARY_ENCODING
Encoding of the abbreviation dictionary.
|
static String |
PARAM_ABBREVIATION_DICTIONARY_LOCATION
Location of the abbreviation dictionary.
|
static String |
PARAM_ALGORITHM
Training algorithm.
|
static String |
PARAM_CUTOFF
Frequency cut-off.
|
static String |
PARAM_EOS_CHARACTERS
End-of-sentence characters.
|
static String |
PARAM_ITERATIONS
Number of training iterations.
|
static String |
PARAM_LANGUAGE
Store this language to the model instead of the document language.
|
static String |
PARAM_NUM_THREADS
Number of parallel threads.
|
static String |
PARAM_TARGET_LOCATION
Location to which the output is written.
|
static String |
PARAM_TRAINER_TYPE
Trainer type.
|
Constructor and Description |
---|
OpenNlpSentenceTrainer() |
Modifier and Type | Method and Description |
---|---|
void |
collectionProcessComplete() |
void |
initialize(org.apache.uima.UimaContext aContext) |
void |
process(org.apache.uima.jcas.JCas aJCas) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_LANGUAGE
public static final String PARAM_TARGET_LOCATION
public static final String PARAM_ALGORITHM
public static final String PARAM_TRAINER_TYPE
public static final String PARAM_ITERATIONS
public static final String PARAM_CUTOFF
public static final String PARAM_EOS_CHARACTERS
public static final String PARAM_ABBREVIATION_DICTIONARY_LOCATION
public static final String PARAM_ABBREVIATION_DICTIONARY_ENCODING
public static final String PARAM_NUM_THREADS
public void initialize(org.apache.uima.UimaContext aContext) 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 org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2007–2019 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.