Class AbstractRecursiveMatcher
- java.lang.Object
-
- org.predict4all.nlp.parser.matcher.AbstractRecursiveMatcher
-
- All Implemented Interfaces:
TokenMatcher
- Direct Known Subclasses:
AcronymMatcher
,HyphenMatcher
public abstract class AbstractRecursiveMatcher extends java.lang.Object implements TokenMatcher
-
-
Constructor Summary
Constructors Constructor Description AbstractRecursiveMatcher(boolean allowEndWithSeparator, Separator termSeparator, java.lang.String wordRegex)
AbstractRecursiveMatcher(boolean allowEndWithSeparator, Separator tokenSeparator, java.lang.String wordRegex, EquivalenceClass equivalenceClass)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.String
createMatchedString(java.util.List<java.lang.String> words)
PatternMatched
match(Token token, TokenProvider tokenFis)
-
-
-
Constructor Detail
-
AbstractRecursiveMatcher
public AbstractRecursiveMatcher(boolean allowEndWithSeparator, Separator tokenSeparator, java.lang.String wordRegex, EquivalenceClass equivalenceClass)
-
AbstractRecursiveMatcher
public AbstractRecursiveMatcher(boolean allowEndWithSeparator, Separator termSeparator, java.lang.String wordRegex)
-
-
Method Detail
-
match
public PatternMatched match(Token token, TokenProvider tokenFis) throws java.io.IOException
- Specified by:
match
in interfaceTokenMatcher
- Throws:
java.io.IOException
-
createMatchedString
protected abstract java.lang.String createMatchedString(java.util.List<java.lang.String> words)
-
-