edu.stanford.nlp.time
Class GenericTimeExpressionPatterns

java.lang.Object
  extended by edu.stanford.nlp.time.GenericTimeExpressionPatterns
All Implemented Interfaces:
TimeExpressionPatterns

public class GenericTimeExpressionPatterns
extends java.lang.Object
implements TimeExpressionPatterns

Provides generic mechanism to convert natural language into temporal representation by reading patterns/rules specifying mapping between text and temporal objects from file.

Author:
Angel Chang

Constructor Summary
GenericTimeExpressionPatterns(Options options)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericTimeExpressionPatterns

public GenericTimeExpressionPatterns(Options options)
Method Detail

createExtractor

public CoreMapExpressionExtractor createExtractor()
Description copied from interface: TimeExpressionPatterns
Creates a CoreMapExpressionExtractor that knows how to extract time related expressions from text into CoreMaps

Specified by:
createExtractor in interface TimeExpressionPatterns
Returns:
CoreMapExpressionExtractor

determineRelFlags

public int determineRelFlags(CoreMap annotation,
                             TimeExpression te)
Description copied from interface: TimeExpressionPatterns
Determine how date/times should be resolved for the given temporal expression and its context

Specified by:
determineRelFlags in interface TimeExpressionPatterns
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