Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Generator #36511
    Giovanne
    Participant

      Muito obrigado!!!

      in reply to: Generator #36494
      Giovanne
      Participant

        stopwordsnltk = nltk.corpus.stopwords.words(‘portuguese’)

        def remove_stop_words(texto):
        frases = []
        for(palavras, emocao) in texto:
        semstop = (p for p in palavras.split() if p not in stopwordsnltk)
        frases.append((semstop, emocao))
        return frases

        print(remove_stop_words(base))

      Viewing 2 posts - 1 through 2 (of 2 total)