I am recently doing project in nlp using python. where I need to pre process a csv file which contains text with many row and column.I could became able to stem only simple sentence only. And couldn't able to stem whole csv file at once. How can i do that?? while trying to stem simple csv file i get the error
import csv
from nltk import PorterStemmer
port = PorterStemmer()
with open('status.csv', 'rb') as f:
reader = csv.reader(f)
for row in reader:
print(port.stem(row))