'Compiles the vocabulary to the Pocketsphinx format by creating a
languagemodel and a dictionary.
Arguments:
phrases -- a list of phrases that this vocabulary will contain'

def _compile_vocabulary(self, phrases):

    text = '    '.join([('<s>    %s    </s>' % phrase) for phrase in phrases])
    self._logger.debug('Compiling    languagemodel...')
    vocabulary = self._compile_languagemodel(text, self.languagemodel_file)
    self._logger.debug('Starting    dictionary...')
    self._compile_dictionary(vocabulary, self.dictionary_file)
