Open antoniosguevara22 opened 5 years ago
@gerdm AYUDAA PARFAVARRRRR!!!
@gerdm import nltk nltk.download() from nltk.corpus import stopwords from word.tokenize import word_tokenize
problema= input("Escriba su problema:") stop_words=set(stopwords.words("español")) palabras = words_tokenize(problema) problema_fil = []
for x in palabras : if x not in stop_words: problema_fil.append(x)
print(problema_fil)
Hola @elantonioguevara99.
¿Cómo instalaste nltk?
De una página de Internet que investigue!!
¿Lo instalaste desde pip
, @elantonioguevara99?
pip install nltk
Andaba bien feliz haciendo mi trabajo final y al momento de correrlo Aparece esto :(