public abstract class UnitQuantityAnnotator
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Constructor and Description |
---|
UnitQuantityAnnotator(Unit[] units)
UnitQuantityAnnotator that compares the first Token after each Quantity.
|
UnitQuantityAnnotator(Unit[] units,
int followingTokens)
UnitQuantityAnnotator that compares the <followingTokens>
following Tokens after each Quantity.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
handleQuantity(de.unibi.techfak.isy.lppba.descriptors.Quantity q,
Unit unit,
List<de.unibi.techfak.isy.lppba.descriptors.Token> unitTokens,
org.apache.uima.jcas.JCas jcas) |
void |
process(org.apache.uima.jcas.JCas jcas) |
getLogger, initialize
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public UnitQuantityAnnotator(Unit[] units, int followingTokens)
units
- , the units to match with this AnnotatorfollowingTokens
- , the Number of tokens that are compared to the unitpublic UnitQuantityAnnotator(Unit[] units)
units
- , the units to match with this Annotatorpublic void process(org.apache.uima.jcas.JCas jcas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright (C) 2013, 2014 Raphael Dickfelder, Jan Göpfert, Benjamin Paassen, Andreas Stöckel, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/scie