Skip to content

Commit

Permalink
Fix corrected_path
Browse files Browse the repository at this point in the history
  • Loading branch information
sunveil authored and oksidgy committed Jan 9, 2024
1 parent c641e64 commit 1ffcca8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dedoc/scripts/calc_tesseract_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ def __calculate_ocr_reports(cache_dir_accuracy: str, benchmark_data_path: str, c
corrector, corrected_path = init_correction_step(cache_dir)
elif USE_CORRECTION_OCR == LANGUAGE_TOOL_CORRECTION:
corrector = LanguageToolCorrector()
corrected_path = os.path.join(cache_dir, "result_corrected")
os.makedirs(corrected_path, exist_ok=True)

with zipfile.ZipFile(benchmark_data_path, "r") as arch_file:
names_dirs = [member.filename for member in arch_file.infolist() if member.file_size > 0]
Expand Down

0 comments on commit 1ffcca8

Please sign in to comment.