edu.stanford.nlp.time
Class TimeExpression
java.lang.Object
edu.stanford.nlp.ling.tokensregex.MatchedExpression
edu.stanford.nlp.time.TimeExpression
public class TimeExpression
- extends MatchedExpression
Time Expression
- Author:
- Angel Chang
| Fields inherited from class edu.stanford.nlp.ling.tokensregex.MatchedExpression |
annotation, charOffsets, chunkOffsets, COREMAP_TO_CHAR_OFFSETS_INTERVAL_FUNC, COREMAP_TO_TOKEN_OFFSETS_INTERVAL_FUNC, EXPR_LENGTH_COMPARATOR, EXPR_LENGTH_PRIORITY_COMPARATOR, EXPR_ORDER_COMPARATOR, EXPR_PRIORITY_COMPARATOR, EXPR_PRIORITY_LENGTH_COMPARATOR, EXPR_TO_TOKEN_OFFSETS_INTERVAL_FUNC, EXPR_TOKEN_OFFSET_COMPARATOR, EXPR_TOKEN_OFFSETS_CONTAINS_FIRST_COMPARATOR, EXPR_TOKEN_OFFSETS_NESTED_FIRST_COMPARATOR, extractFunc, text, tokenOffsets, value |
| Methods inherited from class edu.stanford.nlp.ling.tokensregex.MatchedExpression |
extractAnnotation, getAnnotation, getCharOffsets, getChunkOffsets, getOrder, getPriority, getText, getTokenOffsets, getValue, isIncludeNested, removeNested, removeNullValues, removeOverlapping, replaceMerged, replaceMergedUsingTokenOffsets, setIncludeNested, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TimeExpressionConverter
protected static final Function<MatchedExpression,TimeExpression> TimeExpressionConverter
TimeExpression
public TimeExpression(MatchedExpression expr)
TimeExpression
public TimeExpression(Interval<java.lang.Integer> charOffsets,
Interval<java.lang.Integer> tokenOffsets,
Function<CoreMap,SUTime.Temporal> temporalFunc,
double priority,
double weight)
addMod
public boolean addMod()
extractAnnotation
public boolean extractAnnotation(Env env,
CoreMap sourceAnnotation)
- Overrides:
extractAnnotation in class MatchedExpression
extractAnnotation
public boolean extractAnnotation(Env env,
java.util.List<? extends CoreMap> source)
- Overrides:
extractAnnotation in class MatchedExpression
getTemporal
public SUTime.Temporal getTemporal()
setTemporal
public void setTemporal(SUTime.Temporal temporal)
Stanford NLP Group