This commit is contained in:
olczig 2023-03-29 11:32:13 +02:00
parent 6ed991bf3f
commit c9375a0899
2 changed files with 2875 additions and 10523 deletions

File diff suppressed because it is too large Load Diff

13
lm0.py
View File

@ -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")