Package smile.nlp.dictionary
Interface Abbreviations
- All Superinterfaces:
Dictionary
A dictionary interface for abbreviations.
-
Method Summary
Methods inherited from interface smile.nlp.dictionary.Dictionary
contains, iterator, size
-
Method Details
-
getFull
Returns the full word of an abbreviation. If the abbreviation doesn't exist in the dictionary return null.- Parameters:
abbr
- the abbreviation.- Returns:
- the full word of abbreviation or null.
-
getAbbreviation
Returns the abbreviation for a word. If the word doesn't exist in the dictionary return null.- Parameters:
word
- the query word.- Returns:
- the abbreviation or null.
-