public abstract class EdgePunctuationPatternProvider extends PatternProvider
Modifier and Type | Class and Description |
---|---|
static class |
EdgePunctuationPatternProvider.Left
Left edge punctuations.
|
static class |
EdgePunctuationPatternProvider.Right
Left edge punctuations.
|
Modifier and Type | Field and Description |
---|---|
protected String |
EdgePunct |
protected String |
EndPunc |
protected String |
NotEdgePunct |
protected String |
StartPunc |
Constructor and Description |
---|
EdgePunctuationPatternProvider(PunctuationPatternProvider punctuation) |
Modifier and Type | Method and Description |
---|---|
abstract String |
correctEdges(String s) |
static String |
edgePuncPattern() |
static String |
fixedges(String text)
pads start/end brackets with a space so they can be correctly matched
while not screwing up the rest of the text
|
combine, pattern, patternString
protected String NotEdgePunct
public EdgePunctuationPatternProvider(PunctuationPatternProvider punctuation)
punctuation
- public static String edgePuncPattern()
EdgePunctuationPatternProvider
public abstract String correctEdges(String s)
s
-