Usuń 'lm0.py'
This commit is contained in:
parent
9d20e1fcdc
commit
1546512acd
12
lm0.py
12
lm0.py
@ -1,12 +0,0 @@
|
|||||||
#!/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")
|
|
Loading…
Reference in New Issue
Block a user