public final class PatternRuleMatcher extends AbstractPatternRulePerformer implements RuleMatcher
AbstractPatternRulePerformer.MatchConsumer
Modifier and Type | Field and Description |
---|---|
static String |
MISTAKE |
prevMatched, rule, unifiedTokens, unifier
Constructor and Description |
---|
PatternRuleMatcher(AbstractTokenBasedRule rule,
boolean useList) |
Modifier and Type | Method and Description |
---|---|
static Map<String,Integer> |
getCurrentRules() |
RuleMatch[] |
match(AnalyzedSentence sentence) |
protected boolean |
testAllReadings(AnalyzedTokenReadings[] tokens,
PatternTokenMatcher matcher,
PatternTokenMatcher prevElement,
int tokenNo,
int firstMatchToken,
int prevSkipNext) |
doMatch, isInterpretPosTagsPreDisambiguation
public static final String MISTAKE
@ApiStatus.Internal public PatternRuleMatcher(AbstractTokenBasedRule rule, boolean useList)
public RuleMatch[] match(AnalyzedSentence sentence) throws IOException
match
in interface RuleMatcher
IOException
protected boolean testAllReadings(AnalyzedTokenReadings[] tokens, PatternTokenMatcher matcher, PatternTokenMatcher prevElement, int tokenNo, int firstMatchToken, int prevSkipNext) throws IOException
testAllReadings
in class AbstractPatternRulePerformer
IOException