public class OpenNlpSegmenter extends SegmenterBase
| Modifier and Type | Field and Description |
|---|---|
protected String |
language |
static String |
PARAM_LANGUAGE
Use this language instead of the document language to resolve the model.
|
static String |
PARAM_SEGMENTATION_MODEL_LOCATION
Load the segmentation model from this location instead of locating the model automatically.
|
static String |
PARAM_TOKENIZATION_MODEL_LOCATION
Load the tokenization model from this location instead of locating the model automatically.
|
static String |
PARAM_VARIANT
Override the default variant used to locate the model.
|
protected String |
segmentationModelLocation |
protected String |
tokenizationModelLocation |
protected String |
variant |
PARAM_STRICT_ZONING, PARAM_WRITE_FORM, PARAM_WRITE_SENTENCE, PARAM_WRITE_TOKEN, PARAM_ZONE_TYPES| Constructor and Description |
|---|
OpenNlpSegmenter() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(org.apache.uima.UimaContext aContext) |
void |
process(org.apache.uima.jcas.JCas aJCas) |
protected void |
process(org.apache.uima.jcas.JCas aJCas,
String aText,
int aZoneBegin) |
createSentence, createToken, createToken, createToken, getLanguage, getLocale, getZoneTypes, isEmpty, isStrictZoning, isWriteSentence, isWriteToken, limitgetRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextpublic static final String PARAM_LANGUAGE
protected String language
public static final String PARAM_VARIANT
protected String variant
public static final String PARAM_SEGMENTATION_MODEL_LOCATION
protected String segmentationModelLocation
public static final String PARAM_TOKENIZATION_MODEL_LOCATION
protected String tokenizationModelLocation
public void initialize(org.apache.uima.UimaContext aContext)
throws org.apache.uima.resource.ResourceInitializationException
initialize in interface org.apache.uima.analysis_component.AnalysisComponentinitialize in class org.apache.uima.fit.component.JCasAnnotator_ImplBaseorg.apache.uima.resource.ResourceInitializationExceptionpublic void process(org.apache.uima.jcas.JCas aJCas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process in class SegmenterBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionprotected void process(org.apache.uima.jcas.JCas aJCas,
String aText,
int aZoneBegin)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process in class SegmenterBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionCopyright © 2007–2019 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.