challenging-america-word-ga.../lm0.py

9 lines
209 B
Python

#!/usr/bin/python3
import sys
for line in sys.stdin:
text = line.split("\t")[6].split(" ")
if "united" in text:
print('states:0.99 :0.01')
else:
print('the:0.3 to:0.2 of:0.1 and:0.1 a:0.2 :0.1')