15 lines
447 B
Python
15 lines
447 B
Python
import lzma
|
|
with lzma.open('dev-0/in.tsv.xz', 'r') as file:
|
|
for line in file:
|
|
line = line.decode("utf-8")
|
|
line = line.strip()
|
|
if 'I\t' in line:
|
|
print('am:0.9 :0.1')
|
|
elif 'you\t' in line:
|
|
print('are:0.9 :0.1')
|
|
elif 'he\t' in line:
|
|
print('is:0.9 :0.1')
|
|
elif 'she\t' in line:
|
|
print('is:0.9 :0.1')
|
|
else:
|
|
print('the:0.5 a:0.3 :0.2') |