From f1169e15408dc5bd133c230c0edb7aadfb53793e Mon Sep 17 00:00:00 2001 From: jakubknczny Date: Sun, 23 Jan 2022 17:15:54 +0100 Subject: [PATCH] add print in inject --- scripts/inject.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/inject.py b/scripts/inject.py index 66790a7..8190a4b 100644 --- a/scripts/inject.py +++ b/scripts/inject.py @@ -81,6 +81,10 @@ for line, line_en, line_pl in zip(file_en_lemmatized, file_en, file_pl): translation_line_counts.append(1) en.append(line_en) + if len(translation_line_counts) % 50000 == 0: + print('injecting into file: ' + train_in_path + '.injected: ' + str(len(translation_line_counts)), end='\r') + +print('\n') with open(train_expected_path + '.injected', 'w') as file_pl_write: for line, translation_line_ct in zip(file_pl, translation_line_counts):