Skip to content

Instantly share code, notes, and snippets.

@KyleCotton
KyleCotton / main.py
Last active September 29, 2021 16:15
IR Preprocessing
import sys
from preprocess import preprocess
from term_frequency import frequency_from_list
if __name__ == '__main__':
text = sys.stdin.read()
terms_list = preprocess(text)
freq = frequency_from_list(terms_list)

Keybase proof

I hereby claim:

  • I am KyleCotton on github.
  • I am kylecotton (https://keybase.io/kylecotton) on keybase.
  • I have a public key whose fingerprint is AD0F FB58 8048 0EFD 000C CFBC EBDB 0537 402C 6F6C

To claim this, I am signing this object: