Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jorendorff/8f2b6976302afbccbfe0f805b85037b2 to your computer and use it in GitHub Desktop.

Select an option

Save jorendorff/8f2b6976302afbccbfe0f805b85037b2 to your computer and use it in GitHub Desktop.
#!/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