Package org.opensextant.extractors.poli
Class PoliMatch
java.lang.Object
org.opensextant.extraction.TextEntity
org.opensextant.extraction.TextMatch
org.opensextant.extractors.poli.PoliMatch
- All Implemented Interfaces:
Comparable<TextMatch>
,MatchSchema
- Direct Known Subclasses:
EmailAddress
,MACAddress
,Money
,TelephoneNumber
- Author:
- Marc C. Ubaldino, MITRE, ubaldino at mitre dot org
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
static int
int
static int
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
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
-
textnorm
-
UPPER_CASE
public static int UPPER_CASE -
LOWER_CASE
public static int LOWER_CASE -
FOUND_CASE
public static int FOUND_CASE -
normal_case
public int normal_case -
match_groups
-
-
Constructor Details
-
PoliMatch
public PoliMatch()No-argument constructor is needed because class in invoked through introspection (via name of class) -
PoliMatch
public PoliMatch(int x1, int x2) -
PoliMatch
-
PoliMatch
-
-
Method Details
-
setGroups
-
normalize
public void normalize()Trim whitespace and convert found text to alpha case configured for this object.
-