[Python] How to remove stop words using nltk or python

Discussão em 'Python' iniciado por Stack, Abril 29, 2025.

  1. Stack

    Stack Membro Participativo

    I have a dataset from which I would like to remove stop words.

    I used NLTK to get a list of stop words:

    from nltk.corpus import stopwords

    stopwords.words('english')


    Exactly how do I compare the data to the list of stop words, and thus remove the stop words from the data?

    Continue reading...

Compartilhe esta Página