Entries from 2013-05-20 to 1 day
Let's continue. Chapter 3.5.3 of the whale book.One of examples of stemming. >>> def stem(word): ... for suffix in ['ing', 'ly', 'ed', 'ious', 'ies', 'ive', 'es', 's', 'ment']: ... if word.endswith(suffix): ... return word[:-len(suffix)] .…