|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_component.Annotator_ImplBase
org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.fit.component.JCasAnnotator_ImplBase
edu.ucdenver.ccp.nlp.biolemmatizer.uima.BioLemmatizer_AE
public class BioLemmatizer_AE
This annotator processes tokens in the CAS and inserts corresponding lemmas. This annotator is type-system-independent and relies on implementations of TokenAttributeExtractor, TokenAttributeInserter, and AnnotationDataExtractor in order to function as intended.
Field Summary | |
---|---|
static String |
PARAM_ANNOTATION_DATA_EXTRACTOR_CLASS
Parameter name used in the UIMA descriptor file for the annotation data extractor implementation to use |
static String |
PARAM_LEMMA_DECORATOR_CLASS
Parameter name used in the UIMA descriptor file for the LemmaDecorator implementation
to use |
static String |
PARAM_POS_DECORATOR_CLASS
Parameter name used in the UIMA descriptor file for the PartOfSpeechDecorator
implementation to use |
static String |
PARAM_TOKEN_GET_POS_METHOD_NAME
Parameter name used in the UIMA descriptor file for the name of the method that returns a part-of-speech (as a String) from the token annotation |
static String |
PARAM_TOKEN_TYPE_NAME
Parameter name used in the UIMA descriptor file for the token type |
Constructor Summary | |
---|---|
BioLemmatizer_AE()
|
Method Summary | |
---|---|
static AnalysisEngineDescription |
createAnalysisEngineDescription(TypeSystemDescription tsd,
Class<? extends Annotation> tokenClass)
|
static AnalysisEngineDescription |
createAnalysisEngineDescription(TypeSystemDescription tsd,
Class<? extends Annotation> tokenClass,
String tokenGetPosMethodName)
|
static AnalysisEngineDescription |
createAnalysisEngineDescription(TypeSystemDescription tsd,
Class<? extends Annotation> tokenClass,
String tokenGetPosMethodName,
Class<? extends edu.ucdenver.ccp.uima.shims.annotation.AnnotationDataExtractor> annotationDataExtractorClass,
Class<? extends edu.ucdenver.ccp.uima.shims.annotation.syntactic.token.LemmaDecorator> lemmaDecoratorClass)
Initializes an AnalysisEngine that will determine lemmas for tokens that are present
in the CAS |
static AnalysisEngineDescription |
createAnalysisEngineDescription(TypeSystemDescription tsd,
String tokenType,
Class<? extends edu.ucdenver.ccp.uima.shims.annotation.syntactic.token.PartOfSpeechDecorator> partOfSpeechDecoratorClass,
Class<? extends edu.ucdenver.ccp.uima.shims.annotation.AnnotationDataExtractor> annotationDataExtractorClass,
Class<? extends edu.ucdenver.ccp.uima.shims.annotation.syntactic.token.LemmaDecorator> lemmaDecoratorClass)
|
void |
initialize(UimaContext context)
Initializes the BioLemmatizer that will be used by the
process(JCas) method |
static Object |
invokeNoArgsConstructor(String className)
Returns an instantiation of the class specified by the input String . |
void |
process(JCas jCas)
This process(JCas) method cycles through all annotations in the CAS. |
Methods inherited from class org.apache.uima.fit.component.JCasAnnotator_ImplBase |
---|
getLogger |
Methods inherited from class org.apache.uima.analysis_component.JCasAnnotator_ImplBase |
---|
getRequiredCasInterface, process |
Methods inherited from class org.apache.uima.analysis_component.Annotator_ImplBase |
---|
getCasInstancesRequired, hasNext, next |
Methods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBase |
---|
batchProcessComplete, collectionProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PARAM_TOKEN_TYPE_NAME
public static final String PARAM_TOKEN_GET_POS_METHOD_NAME
public static final String PARAM_POS_DECORATOR_CLASS
PartOfSpeechDecorator
implementation to use
public static final String PARAM_LEMMA_DECORATOR_CLASS
LemmaDecorator
implementation
to use
public static final String PARAM_ANNOTATION_DATA_EXTRACTOR_CLASS
Constructor Detail |
---|
public BioLemmatizer_AE()
Method Detail |
---|
public void initialize(UimaContext context) throws ResourceInitializationException
BioLemmatizer
that will be used by the
process(JCas)
method
initialize
in interface AnalysisComponent
initialize
in class org.apache.uima.fit.component.JCasAnnotator_ImplBase
ResourceInitializationException
org.uimafit.component.JCasAnnotator_ImplBase#initialize(org.apache.uima.UimaContext)
public static Object invokeNoArgsConstructor(String className)
String
. Assumes default
constructor, i.e. no arguments.
className
- arguments
-
public void process(JCas jCas) throws AnalysisEngineProcessException
AnnotationDataExtractor
implementation being used, an attempt
is made to extract part-of-speech information. The covered text for each token is then
lemmatized using the BioLemmatizer
, using the part-of-speech information if it was
available. Results from the BioLemmatizer
are added to the CAS via the specified
LemmaDecorator
implementation.
process
in class JCasAnnotator_ImplBase
AnalysisEngineProcessException
JCasAnnotator_ImplBase.process(org.apache.uima.jcas.JCas)
public static AnalysisEngineDescription createAnalysisEngineDescription(TypeSystemDescription tsd, Class<? extends Annotation> tokenClass, String tokenGetPosMethodName, Class<? extends edu.ucdenver.ccp.uima.shims.annotation.AnnotationDataExtractor> annotationDataExtractorClass, Class<? extends edu.ucdenver.ccp.uima.shims.annotation.syntactic.token.LemmaDecorator> lemmaDecoratorClass) throws ResourceInitializationException
AnalysisEngine
that will determine lemmas for tokens that are present
in the CAS
tsd
- tokenClass
- tokenGetPosMethodName
- annotationDataExtractorClass
- lemmaDecoratorClass
-
ResourceInitializationException
public static AnalysisEngineDescription createAnalysisEngineDescription(TypeSystemDescription tsd, String tokenType, Class<? extends edu.ucdenver.ccp.uima.shims.annotation.syntactic.token.PartOfSpeechDecorator> partOfSpeechDecoratorClass, Class<? extends edu.ucdenver.ccp.uima.shims.annotation.AnnotationDataExtractor> annotationDataExtractorClass, Class<? extends edu.ucdenver.ccp.uima.shims.annotation.syntactic.token.LemmaDecorator> lemmaDecoratorClass) throws ResourceInitializationException
tsd
- tokenType
- partOfSpeechDecoratorClass
- annotationDataExtractorClass
- lemmaDecoratorClass
-
ResourceInitializationException
public static AnalysisEngineDescription createAnalysisEngineDescription(TypeSystemDescription tsd, Class<? extends Annotation> tokenClass) throws ResourceInitializationException
tsd
- tokenClass
-
ResourceInitializationException
public static AnalysisEngineDescription createAnalysisEngineDescription(TypeSystemDescription tsd, Class<? extends Annotation> tokenClass, String tokenGetPosMethodName) throws ResourceInitializationException
tsd
- tokenClass
- tokenGetPosMethodName
-
ResourceInitializationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |