public abstract class MorphAdornerGateWrapperBase
extends gate.creole.AbstractLanguageAnalyser
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
alternateSpellingsURL
Alternate spellings URL.
|
static java.lang.String |
BASE_SENTENCE_ANNOTATION_TYPE_PARAMETER_NAME |
static java.lang.String |
BASE_TOKEN_ANNOTATION_TYPE_PARAMETER_NAME |
protected java.lang.String |
baseSentenceAnnotationType
Base annotation type for sentences.
|
protected java.lang.String |
baseTokenAnnotationType
Base annotation type for tokens.
|
protected java.lang.String |
encoding
Document encoding.
|
protected PartOfSpeechGuesser |
guesser
Part of speech guesser.
|
protected java.lang.String |
inputASName
Input annotation name.
|
protected static java.lang.String |
lemmaSeparator |
protected java.lang.String |
outputAnnotationType
Output anotation type.
|
protected java.lang.String |
outputASName
Output annotation name.
|
protected java.lang.String |
spellingsURL
Standard spellings URL.
|
protected WordTokenizer |
spellingTokenizer
Spelling tokenizer for lemmatization.
|
protected Lexicon |
suffixLexicon
Suffix lexicon.
|
static java.lang.String |
TAG_DOCUMENT_PARAMETER_NAME |
static java.lang.String |
TAG_INPUT_AS_PARAMETER_NAME |
static java.lang.String |
TAG_OUTPUT_AS_PARAMETER_NAME |
protected static java.lang.String |
tagSeparator
Part of speech tag separator.
|
static java.lang.String |
TOKEN_LEMMA_FEATURE_NAME |
static java.lang.String |
TOKEN_SPELLING_FEATURE_NAME |
static java.lang.String |
TOKEN_STANDARD_SPELLING_FEATURE_NAME |
protected Lexicon |
wordLexicon
Word lexicon.
|
ANNOTATION_COREF_FEATURE_NAME, DATE_ANNOTATION_TYPE, DATE_POSTED_ANNOTATION_TYPE, DOCUMENT_COREF_FEATURE_NAME, JOB_ID_ANNOTATION_TYPE, LOCATION_ANNOTATION_TYPE, LOOKUP_ANNOTATION_TYPE, LOOKUP_CLASS_FEATURE_NAME, LOOKUP_INSTANCE_FEATURE_NAME, LOOKUP_MAJOR_TYPE_FEATURE_NAME, LOOKUP_MINOR_TYPE_FEATURE_NAME, LOOKUP_ONTOLOGY_FEATURE_NAME, MONEY_ANNOTATION_TYPE, ORGANIZATION_ANNOTATION_TYPE, PERSON_ANNOTATION_TYPE, PERSON_GENDER_FEATURE_NAME, PR_NAMES, SENTENCE_ANNOTATION_TYPE, SPACE_TOKEN_ANNOTATION_TYPE, TOKEN_ANNOTATION_TYPE, TOKEN_CATEGORY_FEATURE_NAME, TOKEN_KIND_FEATURE_NAME, TOKEN_LENGTH_FEATURE_NAME, TOKEN_ORTH_FEATURE_NAME, TOKEN_STRING_FEATURE_NAME| Constructor and Description |
|---|
MorphAdornerGateWrapperBase()
Gate wrapper for MorphAdorner.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFeatures(gate.Annotation annot,
java.lang.String featureName,
java.lang.String featureValue) |
void |
checkGateResources()
Check for required Gate resources.
|
protected void |
commonInit()
Common initialization.
|
void |
execute()
Perform adornment.
|
java.lang.String |
getBaseSentenceAnnotationType() |
java.lang.String |
getBaseTokenAnnotationType() |
java.lang.String |
getEncoding() |
java.lang.String |
getInputASName() |
protected void |
getLexicons()
Get lexicons.
|
java.lang.String |
getOutputAnnotationType() |
java.lang.String |
getOutputASName() |
protected void |
getPartOfSpeechGuesser()
Get part of speech guesser.
|
gate.Resource |
init()
Initialize resources.
|
void |
setBaseSentenceAnnotationType(java.lang.String baseSentenceAnnotationtype) |
void |
setBaseTokenAnnotationType(java.lang.String baseTokenAnnotationType) |
void |
setEncoding(java.lang.String encoding) |
void |
setInputASName(java.lang.String newInputASName) |
void |
setOutputAnnotationType(java.lang.String outputAnnotationType) |
void |
setOutputASName(java.lang.String outputASName) |
getCorpus, getDocument, setCorpus, setDocumentaddProgressListener, addStatusListener, cleanup, fireProcessFinished, fireProgressChanged, fireStatusChanged, interrupt, isInterrupted, reInit, removeProgressListener, removeStatusListenercheckParameterValues, getBeanInfo, getName, getParameterValue, getParameterValue, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListenersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final java.lang.String TAG_DOCUMENT_PARAMETER_NAME
public static final java.lang.String TAG_INPUT_AS_PARAMETER_NAME
public static final java.lang.String TAG_OUTPUT_AS_PARAMETER_NAME
public static final java.lang.String BASE_TOKEN_ANNOTATION_TYPE_PARAMETER_NAME
public static final java.lang.String BASE_SENTENCE_ANNOTATION_TYPE_PARAMETER_NAME
public static final java.lang.String TOKEN_LEMMA_FEATURE_NAME
public static final java.lang.String TOKEN_SPELLING_FEATURE_NAME
public static final java.lang.String TOKEN_STANDARD_SPELLING_FEATURE_NAME
protected java.lang.String inputASName
protected java.lang.String outputASName
protected java.lang.String outputAnnotationType
protected java.lang.String baseTokenAnnotationType
protected java.lang.String baseSentenceAnnotationType
protected java.lang.String encoding
protected Lexicon wordLexicon
protected Lexicon suffixLexicon
protected PartOfSpeechGuesser guesser
protected WordTokenizer spellingTokenizer
protected java.lang.String spellingsURL
protected java.lang.String alternateSpellingsURL
protected static java.lang.String tagSeparator
protected static java.lang.String lemmaSeparator
public MorphAdornerGateWrapperBase()
public gate.Resource init()
throws gate.creole.ResourceInstantiationException
init in interface gate.Resourceinit in class gate.creole.AbstractProcessingResourcegate.creole.ResourceInstantiationExceptionpublic void checkGateResources()
throws gate.creole.ResourceInstantiationException
gate.creole.ResourceInstantiationExceptionpublic void execute()
throws gate.creole.ExecutionException
execute in interface gate.Executableexecute in class gate.creole.AbstractProcessingResourcegate.creole.ExecutionExceptionprotected void getLexicons()
throws gate.creole.ResourceInstantiationException
gate.creole.ResourceInstantiationExceptionprotected void getPartOfSpeechGuesser()
throws gate.creole.ResourceInstantiationException
Note: Must call getLexicons() first!
gate.creole.ResourceInstantiationExceptionprotected void commonInit()
throws gate.creole.ResourceInstantiationException
gate.creole.ResourceInstantiationExceptionpublic void setInputASName(java.lang.String newInputASName)
public java.lang.String getInputASName()
public java.lang.String getEncoding()
public java.lang.String getBaseTokenAnnotationType()
public java.lang.String getBaseSentenceAnnotationType()
public java.lang.String getOutputAnnotationType()
public void setBaseTokenAnnotationType(java.lang.String baseTokenAnnotationType)
public void setBaseSentenceAnnotationType(java.lang.String baseSentenceAnnotationtype)
public void setEncoding(java.lang.String encoding)
public void setOutputAnnotationType(java.lang.String outputAnnotationType)
public java.lang.String getOutputASName()
public void setOutputASName(java.lang.String outputASName)
protected void addFeatures(gate.Annotation annot,
java.lang.String featureName,
java.lang.String featureValue)
throws gate.util.GateRuntimeException
gate.util.GateRuntimeException