Im trying to stem some text in python with SnowballStemmer, but it wont work. Here is the code:
import nltk
from nltk import SnowballStemmer
stem = SnowballStemmer("spanish")
def limpiar (texto):
texto = texto.split()
stemm = SnowballStemmer('spanish')
for palabra in texto:
palabra = stem.stem(palabra.lower())
return texto
It returns the text in lower capitals, but without stemming
The will work :