Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
english_stopwords = set(stopwords.words('english'))
for path in df.path:
words = re.split("[-/]", path)
for word in words:
if len(word) > 0 and word not in english_stopwords and not word.isdigit():
cnt[word] += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment