blob: e8545241f6a30aefabceaad69aa58f2c4c9b19fa (
plain)
1
2
3
4
5
6
7
8
9
10
|
#! /usr/bin/python2
from nltk.stem import WordNetLemmatizer
import sys
wnl = WordNetLemmatizer()
for word in sys.stdin:
word = word.strip()
word = wnl.lemmatize(word)
print word
|