from os.path import join
try:
import nltk
except ImportError:
import sys
!{sys.executable} -m pip install nltk
import nltk
nltk.download('wordnet')
from nltk.corpus import wordnet
from nltk.stem import PorterStemmer
word = "finished"
p_stemmer = PorterStemmer()
p_stemmer.stem(word)
from nltk.stem import SnowballStemmer
SnowballStemmer.languages
stemmer = SnowballStemmer('english')
stemmer.stem("working")
w = 'increases'
p_stemmer.stem(w)
from nltk.stem import WordNetLemmatizer
lemmatizer = WordNetLemmatizer()
lemmatizer.lemmatize(w)
lemmatizer.lemmatize('playing')
lemmatizer.lemmatize('playing', pos="v")