Created
April 16, 2019 02:42
-
-
Save octoparse/9d9b2adf1ed36da8ee860ef916e49db4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
txt = f.read() | |
txt = re.sub('[,\.()":;!@#$%^&*\d]|\'s|\'', '', txt) | |
word_list = txt.replace('\n',' ').replace(' ',' ').lower().split(' ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment