public class ClearNlpSegmenter extends SegmenterBase
Modifier and Type | Field and Description |
---|---|
protected String |
language |
protected String |
modelLocation |
static String |
PARAM_LANGUAGE
Use this language instead of the document language to resolve the model.
|
static String |
PARAM_MODEL_LOCATION
Load the 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 |
variant |
PARAM_STRICT_ZONING, PARAM_WRITE_SENTENCE, PARAM_WRITE_TOKEN, PARAM_ZONE_TYPES
Constructor and Description |
---|
ClearNlpSegmenter() |
Modifier and Type | Method and Description |
---|---|
void |
process(org.apache.uima.jcas.JCas aJCas) |
protected void |
process(org.apache.uima.jcas.JCas aJCas,
String aText,
int aZoneBegin) |
createSentence, createToken, createToken, getLanguage, getLocale, getZoneTypes, isEmpty, isStrictZoning, isWriteSentence, isWriteToken, limit, trim, trimChar
getLogger, initialize
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_LANGUAGE
protected String language
public static final String PARAM_VARIANT
protected String variant
public static final String PARAM_MODEL_LOCATION
protected String modelLocation
public void process(org.apache.uima.jcas.JCas aJCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class SegmenterBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
protected void process(org.apache.uima.jcas.JCas aJCas, String aText, int aZoneBegin) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class SegmenterBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2011–2015. All rights reserved.