Last active
November 3, 2021 10:35
-
-
Save antondevv/c03fd7da0f15657faf766003033a8b76 to your computer and use it in GitHub Desktop.
remove punct
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
remove_punctuation = re.compile('[%s]' % re.escape(string.punctuation)) | |
tokens = [remove_punctuation.sub('', w) for w in tokenized] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment