de.unihd.dbs.uima.annotator.heideltime.utilities
public class ContextAnalyzer extends java.lang.Object
Constructor and Description |
---|
ContextAnalyzer() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Boolean |
checkInfrontBehind(java.util.regex.MatchResult r,
Sentence s)
Check token boundaries of expressions.
|
static java.lang.Boolean |
checkTokenBoundaries(java.util.regex.MatchResult r,
Sentence s,
org.apache.uima.jcas.JCas jcas)
Check token boundaries using token information
|
static java.lang.String |
getClosestTense(Timex3 timex,
org.apache.uima.jcas.JCas jcas,
Language language)
Get the last tense used in the sentence
|
static java.lang.String |
getLastMentionedX(java.util.List<Timex3> linearDates,
int i,
java.lang.String x,
Language language)
The value of the x of the last mentioned Timex is calculated.
|
static java.lang.String |
getLastTense(Timex3 timex,
org.apache.uima.jcas.JCas jcas,
Language language)
Get the last tense used in the sentence
|
public static java.lang.String getLastMentionedX(java.util.List<Timex3> linearDates, int i, java.lang.String x, Language language)
linearDates
- list of previous linear datesi
- index for the previous date entryx
- type to search forpublic static java.lang.String getClosestTense(Timex3 timex, org.apache.uima.jcas.JCas jcas, Language language)
timex
- timex construct to discover tense data forpublic static java.lang.String getLastTense(Timex3 timex, org.apache.uima.jcas.JCas jcas, Language language)
timex
- timex construct to discover tense data forpublic static java.lang.Boolean checkInfrontBehind(java.util.regex.MatchResult r, Sentence s)
r
- MatchResults
- Respective sentencepublic static java.lang.Boolean checkTokenBoundaries(java.util.regex.MatchResult r, Sentence s, org.apache.uima.jcas.JCas jcas)
r
- MatchResults
- respective Sentencejcas
- current CAS object