Class DateMatch
java.lang.Object
org.opensextant.extraction.TextEntity
org.opensextant.extraction.TextMatch
org.opensextant.extractors.xtemporal.DateMatch
- All Implemented Interfaces:
Comparable<TextMatch>
,MatchSchema
- Author:
- ubaldino
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
A simplistic way to capture resolution of the date/time reference. -
Field Summary
Modifier and TypeFieldDescriptionJust the coordinate text normalizedboolean
Flag caller can use to classify if a date match is distantboolean
Flag caller can use to classify if date is future relative to a given date, by default TODAYfields in pattern matchFields 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
Fields inherited from interface org.opensextant.data.MatchSchema
VAL_COORD, VAL_COUNTRY, VAL_PLACE, VAL_POSTAL, VAL_TAXON
-
Constructor Summary
-
Method Summary
Methods inherited from class org.opensextant.extraction.TextMatch
compareTo, copy, defaultMatchId, getContentId, 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 Details
-
datenorm
Just the coordinate text normalized -
datenorm_text
-
patternFields
fields in pattern match -
resolution
-
isDistantPast
public boolean isDistantPastFlag caller can use to classify if a date match is distant -
isFuture
public boolean isFutureFlag caller can use to classify if date is future relative to a given date, by default TODAY
-
-
Constructor Details
-
DateMatch
public DateMatch(int x1, int x2)
-