def buildSearchTrie(self, choices):
    searchtrie = trie.Trie()
    for choice in choices:
        for token in self.tokenizeChoice(choice):
            if (not searchtrie.has_key(token)):
                searchtrie[token] = []
            searchtrie[token].append(choice)
    return searchtrie
def buildSearchTrie(self, choices):
    searchtrie = trie.Trie()
    for choice in choices:
        for token in self.tokenizeChoice(choice):
            if (not searchtrie.has_key(token)):
                searchtrie[token] = []
            searchtrie[token].append(choice)
    return searchtrie