13 lines
345 B
Python
13 lines
345 B
Python
#!/usr/bin/python3
|
|
import sys
|
|
import random
|
|
|
|
words = ['the:0.04 be:0.04 to:0.04 :88',
|
|
'have:0.5 too:0.2 it:0.1 :0.2',
|
|
'not:0.05 or:0.05 :0.9']
|
|
|
|
for lines in sys.stdin:
|
|
with open("dev-0/out.tsv", "w", encoding='utf-8') as out_file:
|
|
for line in lines:
|
|
out_file.write(random.choice(words) + "\n")
|