fixing bug in conllu generator

This commit is contained in:
Jonas Weinz 2019-07-13 19:31:26 +02:00
parent f9bf5ecc01
commit 0b5b900992

View File

@ -74,8 +74,9 @@ for raw_recipe in buffered_reader_1M:
buffer_count += 1
if buffer_count % recipe_buffers_per_file == 0:
savefile.close()
savefile = open(f"recipes{file_count}.conllu", 'w')
file_count += 1
savefile = open(f"recipes{file_count}.conllu", 'w')
process_instructions(instructions)
print(f"processed {i} recipes")