Skip to content

Instantly share code, notes, and snippets.

@Bennykillua
Created July 2, 2022 14:29
Show Gist options
  • Save Bennykillua/c12444a55d96adb4b21697351eac8a57 to your computer and use it in GitHub Desktop.
Save Bennykillua/c12444a55d96adb4b21697351eac8a57 to your computer and use it in GitHub Desktop.
Nltk Open Source
from nltk.stem import PorterStemmer
#from nltk.tokenize import sent_tokenize, word_tokenize
ps = PorterStemmer()
text_words = ["tech","technology","technologized","techy", "Technologization"]
for x in text_words:
print(ps.stem(x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment