public class ExtendedSimpleSpellingStandardizer extends SimpleSpellingStandardizer implements SpellingStandardizer
| Modifier and Type | Field and Description |
|---|---|
protected GapFiller |
gapFiller
Gap filler.
|
alternateSpellingsWordClasses, defaultSpellingsByWordClassFileName, lexicon, logger, mappedSpellings, spellingsByWordClass, standardSpellingSet| Constructor and Description |
|---|
ExtendedSimpleSpellingStandardizer()
Create extended simple spelling standardizer.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String[] |
doStandardizeSpelling(java.lang.String spelling,
boolean addToCache)
Returns standard spellings given a spelling.
|
protected java.lang.String |
fixGaps(java.lang.String word)
Fix gaps in a word.
|
GapFiller |
getGapFiller()
Get gap filler.
|
java.lang.String |
preprocessSpelling(java.lang.String spelling)
Preprocess spelling.
|
void |
setGapFiller(GapFiller gapFiller)
Set gap filler.
|
java.lang.String[] |
standardizeSpelling(java.lang.String spelling)
Returns standard spellings given a spelling.
|
java.lang.String |
toString()
Return standardizer description.
|
addCachedSpelling, addMappedSpelling, addStandardSpelling, addStandardSpellings, fixCapitalization, getLexicon, getLogger, getMappedSpellings, getNumberOfAlternateSpellings, getNumberOfAlternateSpellingsByWordClass, getNumberOfStandardSpellings, getStandardSpellings, loadAlternativeSpellings, loadAlternativeSpellings, loadAlternativeSpellings, loadAlternativeSpellingsByWordClass, loadStandardSpellings, loadStandardSpellings, loadStandardSpellings, setLexicon, setLogger, setMappedSpellings, setStandardSpellings, standardizeSpellingcloseclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddMappedSpelling, addStandardSpelling, addStandardSpellings, fixCapitalization, getMappedSpellings, getNumberOfAlternateSpellings, getNumberOfAlternateSpellingsByWordClass, getNumberOfStandardSpellings, getStandardSpellings, loadAlternativeSpellings, loadAlternativeSpellings, loadAlternativeSpellings, loadAlternativeSpellingsByWordClass, loadStandardSpellings, loadStandardSpellings, loadStandardSpellings, setMappedSpellings, setStandardSpellings, standardizeSpellingprotected GapFiller gapFiller
public ExtendedSimpleSpellingStandardizer()
protected java.lang.String fixGaps(java.lang.String word)
word - Word with gaps.public java.lang.String preprocessSpelling(java.lang.String spelling)
preprocessSpelling in interface SpellingStandardizerpreprocessSpelling in class AbstractSpellingStandardizerspelling - Spelling to preprocess.protected java.lang.String[] doStandardizeSpelling(java.lang.String spelling,
boolean addToCache)
spelling - The spelling.addToCache - Add standardized spelling to spelling map.public java.lang.String[] standardizeSpelling(java.lang.String spelling)
standardizeSpelling in interface SpellingStandardizerstandardizeSpelling in class AbstractSpellingStandardizerspelling - The spelling.public void setGapFiller(GapFiller gapFiller)
gapFiller - The gap filler.public GapFiller getGapFiller()
public java.lang.String toString()
toString in class SimpleSpellingStandardizer