Created
November 2, 2017 14:17
-
-
Save khozzy/615859c00a9ed8bd0d87cf6c00130755 to your computer and use it in GitHub Desktop.
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.tokenize import RegexpTokenizer | |
snippet = snippet.lower() | |
tokens = RegexpTokenizer(r'\w+').tokenize(snippet) | |
untokenize(tokens) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment