We will be using this repo to submit the code for codegolf on Saturday April 21, 2012.
command line arguments:
program path/to/reviews
example:
python index.py /tmp/reviews.micro
you can write anything you want to stderr and stdout EXCEPT >
as soon as it
sees a newline character the harness enters "query phase"
def clean(text):
return (
text
.lower()
.replace('/', '')
.replace('(', '')
.replace(')', '')
.replace(')', '')
.replace(':', '')
.replace('.', '')
.replace(',', '')
.replace(';', '')
.replace(';', '')
.replace('?', ' ?')
.replace('!', ' !')
.replace('-', ' - '))