Class DateMatch
- java.lang.Object
-
- org.opensextant.extraction.TextEntity
-
- org.opensextant.extraction.TextMatch
-
- org.opensextant.extractors.xtemporal.DateMatch
-
public class DateMatch extends TextMatch
- Author:
- ubaldino
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DateMatch.TimeResolution
A simplistic way to capture resolution of the date/time reference.
-
Field Summary
Fields Modifier and Type Field Description java.util.Date
datenorm
Just the coordinate text normalizedjava.lang.String
datenorm_text
boolean
isDistantPast
Flag caller can use to classify if a date match is distantboolean
isFuture
Flag caller can use to classify if date is future relative to a given date, by default TODAYprotected java.util.Map<java.lang.String,java.lang.String>
patternFields
fields in pattern matchDateMatch.TimeResolution
resolution
-
Fields inherited from class org.opensextant.extraction.TextMatch
pattern_id, producer, type
-
Fields inherited from class org.opensextant.extraction.TextEntity
end, is_duplicate, is_overlap, is_submatch, match_id, postChar, preChar, start, text
-
-
Constructor Summary
Constructors Constructor Description DateMatch(int x1, int x2)
-
Method Summary
-
Methods inherited from class org.opensextant.extraction.TextMatch
copy, defaultMatchId, getMatchId, getTextnorm, getType, isDefault, isFilteredOut, isSame, isSameNorm, setFilteredOut, setType, toString
-
Methods inherited from class org.opensextant.extraction.TextEntity
contains, copy, getContext, getContextAfter, getContextBefore, getLength, getText, isAfter, isASCII, isBefore, isLeftMatch, isLower, isMixedCase, isOverlap, isRightMatch, isSameMatch, isUpper, isWithin, isWithinChars, setContext, setContext, setText, setTextOnly
-
-
-
-
Field Detail
-
datenorm
public java.util.Date datenorm
Just the coordinate text normalized
-
datenorm_text
public java.lang.String datenorm_text
-
patternFields
protected java.util.Map<java.lang.String,java.lang.String> patternFields
fields in pattern match
-
resolution
public DateMatch.TimeResolution resolution
-
isDistantPast
public boolean isDistantPast
Flag caller can use to classify if a date match is distant
-
isFuture
public boolean isFuture
Flag caller can use to classify if date is future relative to a given date, by default TODAY
-
-