public class OpenNlpNamedEntityRecognizerTrainer
extends org.apache.uima.fit.component.JCasConsumer_ImplBase
Modifier and Type | Class and Description |
---|---|
static class |
OpenNlpNamedEntityRecognizerTrainer.SequenceEncoding |
Modifier and Type | Field and Description |
---|---|
protected String |
acceptedTagsRegex |
static String |
PARAM_ACCEPTED_TAGS_REGEX
Regex to filter the
named entity by type. |
static String |
PARAM_ALGORITHM |
static String |
PARAM_BEAMSIZE |
static String |
PARAM_CUTOFF
Frequency cut-off.
|
static String |
PARAM_FEATURE_GEN_LOCATION
File containing the feature generation specification.
|
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_SEQUENCE_ENCODING
Type of sequence encoding to use.
|
static String |
PARAM_TARGET_LOCATION
Location to which the output is written.
|
static String |
PARAM_TRAINER_TYPE
Training algorithm.
|
Constructor and Description |
---|
OpenNlpNamedEntityRecognizerTrainer() |
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_ACCEPTED_TAGS_REGEX
named entity
by type.protected String acceptedTagsRegex
public static final String PARAM_ALGORITHM
GISTrainer.MAXENT_VALUE
,
QNTrainer.MAXENT_QN_VALUE
,
PerceptronTrainer.PERCEPTRON_VALUE
,
SimplePerceptronSequenceTrainer.PERCEPTRON_SEQUENCE_VALUE
,
Constant Field Valuespublic static final String PARAM_TRAINER_TYPE
public static final String PARAM_ITERATIONS
public static final String PARAM_CUTOFF
public static final String PARAM_BEAMSIZE
NameFinderME.DEFAULT_BEAM_SIZE
,
Constant Field Valuespublic static final String PARAM_FEATURE_GEN_LOCATION
public static final String PARAM_SEQUENCE_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.