'Returns an ordered list of the best character ngrams for an intent classification problem'

def _get_best_ngrams(self, examples, labels):

    oov_strings = self._remove_in_vocab_words(examples)
    ngrams = self._generate_all_ngrams(oov_strings)
    return self._sort_applicable_ngrams(ngrams, examples, labels)
