def stem_text(text):
 text = utils.to_unicode(text)
 p = PorterStemmer()
 return ' '.join((p.stem(word) for word in text.split()))

def stem_text ( text ) : text = utils . to_unicode ( text ) p = PorterStemmer ( ) return ' ' . join ( ( p . stem ( word ) for word in text . split ( ) ) )
return lowercase and stemmed version of string text .