Class HyphenMatcher
- java.lang.Object
-
- org.predict4all.nlp.parser.matcher.AbstractRecursiveMatcher
-
- org.predict4all.nlp.language.french.matcher.HyphenMatcher
-
- All Implemented Interfaces:
TokenMatcher
public class HyphenMatcher extends AbstractRecursiveMatcher
Term matcher to match word sequence with hyphen between each word.
The sequence should start and end with hyphen, examples :- a-t : valid
- a-t-elle : valid
- a-t-elle- : not valid
- -test- : not valid
-
-
Constructor Summary
Constructors Constructor Description HyphenMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
createMatchedString(java.util.List<java.lang.String> words)
-
Methods inherited from class org.predict4all.nlp.parser.matcher.AbstractRecursiveMatcher
match
-
-
-
-
Method Detail
-
createMatchedString
protected java.lang.String createMatchedString(java.util.List<java.lang.String> words)
- Specified by:
createMatchedString
in classAbstractRecursiveMatcher
-
-