T9
T9 Trie Word Completion Algorithm
t9.Dictionary Class Reference
Collaboration diagram for t9.Dictionary:

List of all members.

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

Detailed Description

Dictionary Sep 4, 2013

Author:
Ian Kaplan, iank@bearcave.com

Definition at line 29 of file Dictionary.java.


Constructor & Destructor Documentation

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.

Exceptions:
FileNotFoundException

Definition at line 54 of file Dictionary.java.


Member Function Documentation

static Dictionary t9.Dictionary.getDictionary ( ) throws FileNotFoundException, IOException [static]

Get an instance of the Dictionary singleton.

Returns:
an instance of the Dictionary singleton
Exceptions:
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.

Parameters:
letterthe starting letter for the prefix Trie
Returns:
the root of the prefix tree or null if for some reason the Trie doesn't exist.

Definition at line 122 of file Dictionary.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables