NLTK and Stopwords Fail #lookuperror

后端 未结 6 801
我寻月下人不归
我寻月下人不归 2020-12-24 00:35

I am trying to start a project of sentiment analysis and I will use the stop words method. I made some research and I found that nltk have stopwords but when I execute the c

6条回答
  •  一向
    一向 (楼主)
    2020-12-24 01:08

    import nltk
    nltk.download('stopwords')
    from nltk.corpus import stopwords
    STOPWORDS = set(stopwords.words('english'))
    

提交回复
热议问题