Skip to content

Instantly share code, notes, and snippets.

@lmeulen
Last active October 23, 2022 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmeulen/2f5833933baeeab3226be0b686d25972 to your computer and use it in GitHub Desktop.
Save lmeulen/2f5833933baeeab3226be0b686d25972 to your computer and use it in GitHub Desktop.
text_summary_init
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