From 95fb20be780b0b830451d0a3a14ce1dc96a0833f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Jaworski?= Date: Tue, 26 Feb 2019 20:15:17 +0100 Subject: [PATCH] corrected leave out --- tests/addFastAlignedTM.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/addFastAlignedTM.py b/tests/addFastAlignedTM.py index 4ec1155..213a8b2 100755 --- a/tests/addFastAlignedTM.py +++ b/tests/addFastAlignedTM.py @@ -78,7 +78,7 @@ examples = [] start = time.time() with open(sourceFile) as source_file, open(lemmatizedSourceFile) as lemmatized_source_file, open(targetFile) as target_file, open(alignmentsFile) as alignments_file, open(sourceIdsFile) as source_ids_file: addedCount = 0 - for lineNumber in range(totalExamples): + for lineNumber in range(sourceFileLength): if lineNumber % LEAVE_OUT == 0: sourceSentence = source_file.readline().strip() lemmatizedSourceSentence = lemmatized_source_file.readline().strip()