use ngrams to module to parse the sentence