|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.time.TimeFormatter.CustomDateFormatExtractor
public static class TimeFormatter.CustomDateFormatExtractor
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 |
|---|
public TimeFormatter.CustomDateFormatExtractor(java.lang.String timePattern)
| Method Detail |
|---|
public java.util.regex.Pattern getTextPattern()
public Value apply(java.lang.String str)
Function
apply in interface Function<java.lang.String,Value>str - The function's argument
public Value apply(java.util.regex.MatchResult m)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||