corrected leave out

This commit is contained in:
Rafał Jaworski 2019-02-26 20:15:17 +01:00
parent c20a8ae58a
commit 95fb20be78

View File

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