1# import these modules
2from nltk.stem import WordNetLemmatizer
3
4lemmatizer = WordNetLemmatizer()
5
6print("rocks :", lemmatizer.lemmatize("rocks"))
7print("corpora :", lemmatizer.lemmatize("corpora"))
8
9# a denotes adjective in "pos"
10print("better :", lemmatizer.lemmatize("better", pos ="a"))
11