edu.stanford.nlp.time
Interface TimeExpressionPatterns

All Known Implementing Classes:
EnglishTimeExpressionPatterns, GenericTimeExpressionPatterns

public interface TimeExpressionPatterns

Interface for rules/patterns for transforming time related natural language expressions into temporal representations Patterns are based on the TokensRegex

Author:
Angel Chang

Method Summary
 CoreMapExpressionExtractor createExtractor()
          Creates a CoreMapExpressionExtractor that knows how to extract time related expressions from text into CoreMaps
 int determineRelFlags(CoreMap annotation, TimeExpression te)
          Determine how date/times should be resolved for the given temporal expression and its context
 

Method Detail

createExtractor

CoreMapExpressionExtractor createExtractor()
Creates a CoreMapExpressionExtractor that knows how to extract time related expressions from text into CoreMaps

Returns:
CoreMapExpressionExtractor

determineRelFlags

int determineRelFlags(CoreMap annotation,
                      TimeExpression te)
Determine how date/times should be resolved for the given temporal expression and its context

Parameters:
annotation - Annotation from which the temporal express was extracted (context)
te - Temporal expression
Returns:
flag indicating what resolution scheme to use


Stanford NLP Group