public class StanfordNamedEntityRecognizerTrainer
extends org.apache.uima.fit.component.JCasConsumer_ImplBase
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_LABEL_SET |
static String |
PARAM_PROPERTIES_LOCATION
Training file containing the parameters.
|
static String |
PARAM_RETAIN_CLASS
Flag to keep the label set specified by PARAM_LABEL_SET.
|
static String |
PARAM_TARGET_LOCATION
Location of the target model file.
|
Constructor and Description |
---|
StanfordNamedEntityRecognizerTrainer() |
Modifier and Type | Method and Description |
---|---|
void |
collectionProcessComplete() |
void |
destroy() |
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_TARGET_LOCATION
public static final String PARAM_PROPERTIES_LOCATION
trainFile
or
trainFileList
and serializeTo
parameters in this file are
ignored/overridden.public static final String PARAM_ACCEPTED_TAGS_REGEX
named entity
by
type.protected String acceptedTagsRegex
public static final String PARAM_LABEL_SET
public static final String PARAM_RETAIN_CLASS
public StanfordNamedEntityRecognizerTrainer()
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
public void destroy()
destroy
in interface org.apache.uima.analysis_component.AnalysisComponent
destroy
in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.