public class PatternTokenBuilder extends Object
PatternToken
s.Constructor and Description |
---|
PatternTokenBuilder() |
Modifier and Type | Method and Description |
---|---|
PatternToken |
build() |
PatternTokenBuilder |
csToken(String token)
Add a case-sensitive token.
|
PatternTokenBuilder |
csTokenRegex(String token) |
PatternTokenBuilder |
mark(boolean isMarked)
Corresponds to {@code
|
PatternTokenBuilder |
matchInflectedForms()
Also match inflected forms of the given word - note this will only work when the
given token actually is a baseform.
|
PatternTokenBuilder |
max(int val) |
PatternTokenBuilder |
min(int val) |
PatternTokenBuilder |
negate() |
PatternTokenBuilder |
pos(String posTag) |
PatternTokenBuilder |
posRegex(String posTag) |
PatternTokenBuilder |
posRegexWithStringException(String posTag,
String tokenExceptionRegex) |
PatternTokenBuilder |
setIsWhiteSpaceBefore(boolean whiteSpaceBefore) |
PatternTokenBuilder |
setSkip(int skip) |
PatternTokenBuilder |
token(String token)
Add a case-insensitive token.
|
PatternTokenBuilder |
tokenRegex(String token) |
public PatternTokenBuilder token(String token)
public PatternTokenBuilder csToken(String token)
public PatternTokenBuilder tokenRegex(String token)
public PatternTokenBuilder csTokenRegex(String token)
public PatternTokenBuilder pos(String posTag)
public PatternTokenBuilder posRegex(String posTag)
public PatternTokenBuilder min(int val)
public PatternTokenBuilder max(int val)
public PatternTokenBuilder mark(boolean isMarked)
<marker>...</marker>
in XML. Note that there
can be more tokens with a mark, but then must all be adjacent.public PatternTokenBuilder posRegexWithStringException(String posTag, String tokenExceptionRegex)
public PatternTokenBuilder negate()
public PatternTokenBuilder setSkip(int skip)
public PatternTokenBuilder setIsWhiteSpaceBefore(boolean whiteSpaceBefore)
public PatternTokenBuilder matchInflectedForms()
public PatternToken build()