From 1546512acd879360ea97b5c90fb9b4d8fdf9e69d Mon Sep 17 00:00:00 2001 From: Aleksandra Gronowska Date: Wed, 31 May 2023 02:40:19 +0200 Subject: [PATCH] =?UTF-8?q?Usu=C5=84=20'lm0.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lm0.py | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 lm0.py diff --git a/lm0.py b/lm0.py deleted file mode 100644 index 8a7dcc5..0000000 --- a/lm0.py +++ /dev/null @@ -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")