T9
T9 Trie Word Completion Algorithm
|
Public Member Functions | |
TrieNode | getPrefixTrie (final char letter) |
Static Public Member Functions | |
static Dictionary | getDictionary () throws FileNotFoundException, IOException |
Protected Member Functions | |
Dictionary () throws FileNotFoundException, IOException |
Dictionary Sep 4, 2013
Definition at line 29 of file Dictionary.java.
t9.Dictionary.Dictionary | ( | ) | throws FileNotFoundException, IOException [protected] |
Initialize the Dictionary by reading a file that contains comma separated words and relative frequency. This code depends on the entries in the file being ordered since a set of prefix Tries will be created where each prefix Trie starts with the same character.
FileNotFoundException |
Definition at line 54 of file Dictionary.java.
static Dictionary t9.Dictionary.getDictionary | ( | ) | throws FileNotFoundException, IOException [static] |
Get an instance of the Dictionary singleton.
FileNotFoundException | |
IOException |
Definition at line 108 of file Dictionary.java.
TrieNode t9.Dictionary.getPrefixTrie | ( | final char | letter | ) |
Get the prefix tree associated with a starting letter.
letter | the starting letter for the prefix Trie |
Definition at line 122 of file Dictionary.java.