public class NoopNameStandardizer extends java.lang.Object implements NameStandardizer
| Constructor and Description |
|---|
NoopNameStandardizer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dontStandardize(java.lang.String properName)
Check if we should not standardize a name.
|
int |
getNumberOfNames()
Return number of names.
|
void |
loadNames(java.util.Collection<java.lang.String> properNamesCollection)
Load names from a collection of names.
|
void |
loadNames(java.lang.String properNamesFileName)
Load spelling data.
|
void |
loadNamesFromLexicon(Lexicon lexicon)
Load names from a lexicon.
|
java.lang.String |
preprocessProperName(java.lang.String properName)
Preprocess proper name.
|
java.lang.String |
standardizeProperName(java.lang.String properName)
Returns standard proper name given a proper name.
|
public void loadNames(java.lang.String properNamesFileName)
throws java.io.IOException
loadNames in interface NameStandardizerproperNamesFileName - File containing proper names data.
Does nothing here.
java.io.IOExceptionpublic void loadNames(java.util.Collection<java.lang.String> properNamesCollection)
loadNames in interface NameStandardizerproperNamesCollection - Collection containing proper names.public void loadNamesFromLexicon(Lexicon lexicon) throws java.io.IOException
loadNamesFromLexicon in interface NameStandardizerlexicon - The lexicon from which to load names.
Does nothing here.
java.io.IOExceptionpublic int getNumberOfNames()
getNumberOfNames in interface NameStandardizerpublic boolean dontStandardize(java.lang.String properName)
dontStandardize in interface NameStandardizerproperName - Name to check.public java.lang.String preprocessProperName(java.lang.String properName)
preprocessProperName in interface NameStandardizerproperName - Proper name to preprocess before standardization.public java.lang.String standardizeProperName(java.lang.String properName)
standardizeProperName in interface NameStandardizerproperName - The proper name.