Skip to content

Instantly share code, notes, and snippets.

@khozzy
Created November 2, 2017 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khozzy/649649420ef8291ff86d8da40b2baf36 to your computer and use it in GitHub Desktop.
Save khozzy/649649420ef8291ff86d8da40b2baf36 to your computer and use it in GitHub Desktop.
from nltk.stem.lancaster import LancasterStemmer
lancaster = LancasterStemmer()
lancaster_stemmed = [lancaster.stem(token) for token in tokens]
untokenize(lancaster_stemmed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment