def test_stemmingAndLemma(self): self.assertEqual(prep.StemmingAndLemmatization("the children are playing"),"the child are play")
def preprocess(sentence): # preprocess the sentence using preprocessing model clean=prep.cleanPunctuationAndLower(sentence) stemm=prep.StemmingAndLemmatization(clean) spell=prep.cleanStopWordsAndSpelling(stemm) return spell