Created
November 2, 2017 14:18
-
-
Save khozzy/1b8f78e157697e312db9cc0acba1467f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nltk.stem.snowball import SnowballStemmer | |
snowball = nltk.SnowballStemmer("english") | |
snowball_stemmed = [snowball.stem(token) for token in tokens] | |
untokenize(snowball_stemmed) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment