Last active
October 23, 2022 13:20
-
-
Save lmeulen/2f5833933baeeab3226be0b686d25972 to your computer and use it in GitHub Desktop.
text_summary_init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nltk import tokenize, word_tokenize | |
with open("stopwords.txt"), "r", encoding="utf-8") as f: | |
text = " ".join(f.readlines()) | |
STOP_WORDS = set(text.split()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment