mirror of
https://github.com/qurator-spk/dinglehopper.git
synced 2025-06-09 11:50:00 +02:00
⚡ dinglehopper: Clear Levenshtein cache between OCR-D files
This commit is contained in:
parent
1206c9bb4b
commit
5cf4eddaeb
1 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,7 @@ from ocrd_utils import concat_padded, getLogger
|
|||
from pkg_resources import resource_string
|
||||
|
||||
from qurator.dinglehopper.cli import process as cli_process
|
||||
from qurator.dinglehopper.edit_distance import _levenshtein_matrix
|
||||
|
||||
log = getLogger('processor.OcrdDinglehopperEvaluate')
|
||||
|
||||
|
@ -62,6 +63,9 @@ class OcrdDinglehopperEvaluate(Processor):
|
|||
mimetype=mimetype,
|
||||
local_filename=report_prefix + report_suffix)
|
||||
|
||||
# Clear cache between files
|
||||
_levenshtein_matrix.cache_clear()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
ocrd_dinglehopper()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue