def stemming_porter(): for word_stem in separate_word(): stemmer = stem.PorterStemmer() yield (word_stem,stemmer.stem(word_stem))