edu.stanford.nlp.time
Class TimeFormatter.JodaDateTimeFormatExtractor

java.lang.Object
  extended by edu.stanford.nlp.time.TimeFormatter.JodaDateTimeFormatExtractor
All Implemented Interfaces:
Function<CoreMap,Value>
Enclosing class:
TimeFormatter

public static class TimeFormatter.JodaDateTimeFormatExtractor
extends java.lang.Object
implements Function<CoreMap,Value>


Constructor Summary
TimeFormatter.JodaDateTimeFormatExtractor(org.joda.time.format.DateTimeFormatter formatter)
           
TimeFormatter.JodaDateTimeFormatExtractor(java.lang.String pattern)
           
 
Method Summary
 Value apply(CoreMap m)
          Converts a T1 to a different T2.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeFormatter.JodaDateTimeFormatExtractor

public TimeFormatter.JodaDateTimeFormatExtractor(org.joda.time.format.DateTimeFormatter formatter)

TimeFormatter.JodaDateTimeFormatExtractor

public TimeFormatter.JodaDateTimeFormatExtractor(java.lang.String pattern)
Method Detail

apply

public Value apply(CoreMap m)
Description copied from interface: Function
Converts a T1 to a different T2. For example, a Parser will convert a Sentence to a Tree. A Tagger will convert a Sentence to a TaggedSentence.

Specified by:
apply in interface Function<CoreMap,Value>
Parameters:
m - The function's argument
Returns:
The function's evaluated value


Stanford NLP Group