Class CoreMapSequenceMatcher<T extends CoreMap>
- java.lang.Object
-
- edu.stanford.nlp.ling.tokensregex.BasicSequenceMatchResult<T>
-
- edu.stanford.nlp.ling.tokensregex.SequenceMatcher<T>
-
- edu.stanford.nlp.ling.tokensregex.CoreMapSequenceMatcher<T>
-
- All Implemented Interfaces:
SequenceMatchResult<T>,HasInterval<Integer>,MatchResult
- Direct Known Subclasses:
CoreMapSequenceMatcher.BasicCoreMapSequenceMatcher,TokenSequenceMatcher
public class CoreMapSequenceMatcher<T extends CoreMap> extends SequenceMatcher<T>
CoreMap Sequence Matcher for regular expressions for sequences over CoreMaps.- Author:
- Angel Chang
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCoreMapSequenceMatcher.BasicCoreMapSequenceMatcher-
Nested classes/interfaces inherited from class edu.stanford.nlp.ling.tokensregex.SequenceMatcher
SequenceMatcher.BasicMatchReplacement<T>, SequenceMatcher.FindType, SequenceMatcher.GroupMatchReplacement<T>, SequenceMatcher.MatchReplacement<T>, SequenceMatcher.NamedGroupMatchReplacement<T>
-
Nested classes/interfaces inherited from class edu.stanford.nlp.ling.tokensregex.BasicSequenceMatchResult
BasicSequenceMatchResult.MatchedGroup
-
Nested classes/interfaces inherited from interface edu.stanford.nlp.ling.tokensregex.SequenceMatchResult
SequenceMatchResult.GroupToIntervalFunc<MR extends MatchResult>, SequenceMatchResult.MatchedGroupInfo<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected static Function<List<? extends CoreMap>,String>COREMAP_LIST_TO_STRING_CONVERTER-
Fields inherited from interface edu.stanford.nlp.util.HasInterval
CONTAINS_FIRST_ENDPOINTS_COMPARATOR, ENDPOINTS_COMPARATOR, LENGTH_ENDPOINTS_COMPARATOR, LENGTH_GT_COMPARATOR, LENGTH_LT_COMPARATOR, NESTED_FIRST_ENDPOINTS_COMPARATOR
-
Fields inherited from interface edu.stanford.nlp.ling.tokensregex.SequenceMatchResult
DEFAULT_COMPARATOR, GROUP_AFTER_MATCH, GROUP_BEFORE_MATCH, LENGTH_COMPARATOR, OFFSET_COMPARATOR, ORDER_COMPARATOR, PRIORITY_COMPARATOR, PRIORITY_SCORE_LENGTH_ORDER_OFFSET_COMPARATOR, SCORE_COMPARATOR, SCORER, TO_INTERVAL
-
-
Constructor Summary
Constructors Constructor Description CoreMapSequenceMatcher(SequencePattern<T> pattern, List<? extends T> tokens)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidannotateGroup(int group, Map<String,String> attributes)voidannotateGroup(Map<String,String> attributes)List<CoreMap>getMergedList()List<CoreMap>getMergedList(int... groups)CoreMapmergeGroup()CoreMapmergeGroup(int group)-
Methods inherited from class edu.stanford.nlp.ling.tokensregex.SequenceMatcher
end, find, find, find, findAllNonOverlapping, get, getFindType, groupInfo, groupMatchResult, groupMatchResults, groupNodes, groupValue, isMatchWithResult, matches, nodeMatchResult, region, regionEnd, regionStart, replaceAll, replaceAllExtended, replaceFirst, replaceFirstExtended, reset, setBranchLimit, setFindType, setMatchWithResult, start, toBasicSequenceMatchResult
-
Methods inherited from class edu.stanford.nlp.ling.tokensregex.BasicSequenceMatchResult
copy, elements, end, end, getInterval, getOrder, group, group, group, groupCount, groupInfo, groupInfo, groupMatchResult, groupMatchResults, groupMatchResults, groupNodes, groupNodes, groupValue, groupValue, pattern, priority, score, setOrder, start, start
-
-