arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Create A Stopwords List

hashtag
Create a stopwords list from the Natural Language Tookit (NLTK)

hashtag
Research Notebook: Creating a Stopwords List for Researcharrow-up-right

hashtag
Download the stopwords list to your local device:

Step 1: Click "Jupyter" and go to the main directory Step 2: Go to folder "Data" Step 3: Check "stop_words.csv" and click Download

hashtag
Customize a stopwords list by adding your own stopwords:

my_stopwords= ['my_word1', 'my_word2']        #Add two custom stopwords
stop_words = stop_words + my_stopwords
#print(len(stop_words))

with open('data/stop_words.csv', 'w', newline='') as f:
    writer = csv.writer(f)
    writer.writerow(stop_words)