public class ExactAgeAnnotator
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
static Pattern |
KEYWORDS |
static double |
MAXAGE
The maximum age we accept in seconds. (200 years)
|
static UIMAAnnotationCompositionUtil.UIMASemanticProbabilityModel<de.unibi.techfak.isy.lppba.descriptors.Token> |
MODEL
This decides whether a word is an age specifier as given by the Keywords
pattern above.
|
static double |
SIGMA
We expect an age specifier roughly in 10 characters distance.
|
static double |
THRESHOLD
The threshold we require for the probability of an age specifier.
|
Constructor and Description |
---|
ExactAgeAnnotator() |
Modifier and Type | Method and Description |
---|---|
void |
process(org.apache.uima.jcas.JCas jcas) |
getLogger, initialize
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final Pattern KEYWORDS
public static final UIMAAnnotationCompositionUtil.UIMASemanticProbabilityModel<de.unibi.techfak.isy.lppba.descriptors.Token> MODEL
public static final double SIGMA
public static final double THRESHOLD
public static final double MAXAGE
public 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