.
This commit is contained in:
parent
6ed991bf3f
commit
c9375a0899
13385
dev-0/out.tsv
13385
dev-0/out.tsv
File diff suppressed because it is too large
Load Diff
11
lm0.py
11
lm0.py
@ -1,7 +1,12 @@
|
||||
#!/usr/bin/python3
|
||||
import sys
|
||||
for line in sys.stdin:
|
||||
if line == 0.0:
|
||||
print('the:0.04 be:0.04 to:0.04 not:0.02 or:0.02 a:0.02 :0.8')
|
||||
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