Created
July 22, 2016 15:08
-
-
Save jorendorff/8f2b6976302afbccbfe0f805b85037b2 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
| #!/bin/env python3 | |
| import os | |
| DIR = "./sample" | |
| for filename in os.listdir(DIR): | |
| with open(os.path.join(DIR, filename)) as f: | |
| tokens = f.read().lower().split() | |
| ??? store the tokens in an index... somehow ??? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment