edu.stanford.nlp.time
Class TimeFormatter.CustomDateFormatExtractor

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

public static class TimeFormatter.CustomDateFormatExtractor
extends java.lang.Object
implements Function<java.lang.String,Value>

1. Convert time string pattern to text pattern


Constructor Summary
TimeFormatter.CustomDateFormatExtractor(java.lang.String timePattern)
           
 
Method Summary
 Value apply(java.util.regex.MatchResult m)
           
 Value apply(java.lang.String str)
          Converts a T1 to a different T2.
 java.util.regex.Pattern getTextPattern()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeFormatter.CustomDateFormatExtractor

public TimeFormatter.CustomDateFormatExtractor(java.lang.String timePattern)
Method Detail

getTextPattern

public java.util.regex.Pattern getTextPattern()

apply

public Value apply(java.lang.String str)
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<java.lang.String,Value>
Parameters:
str - The function's argument
Returns:
The function's evaluated value

apply

public Value apply(java.util.regex.MatchResult m)


Stanford NLP Group