diff --git a/qurator/dinglehopper/cli_extract.py b/qurator/dinglehopper/cli_extract.py index 0d4f713..9c51d34 100644 --- a/qurator/dinglehopper/cli_extract.py +++ b/qurator/dinglehopper/cli_extract.py @@ -1,9 +1,6 @@ -import os - import click from ocrd_utils import initLogging -from .extracted_text import ExtractedText from .ocr_files import extract diff --git a/qurator/dinglehopper/cli_line_dirs.py b/qurator/dinglehopper/cli_line_dirs.py index 06d12b8..59c4a1f 100644 --- a/qurator/dinglehopper/cli_line_dirs.py +++ b/qurator/dinglehopper/cli_line_dirs.py @@ -1,19 +1,13 @@ import os -import sys import itertools import click from jinja2 import Environment, FileSystemLoader -from markupsafe import escape -from uniseg.graphemecluster import grapheme_clusters from ocrd_utils import initLogging from .character_error_rate import character_error_rate_n from .word_error_rate import word_error_rate_n, words_normalized -from .align import seq_align -from .extracted_text import ExtractedText from .ocr_files import plain_extract -from .config import Config from .cli import gen_diff_report, json_float diff --git a/qurator/dinglehopper/edit_distance.py b/qurator/dinglehopper/edit_distance.py index 24f6928..531beeb 100644 --- a/qurator/dinglehopper/edit_distance.py +++ b/qurator/dinglehopper/edit_distance.py @@ -1,17 +1,12 @@ from __future__ import division, print_function import unicodedata -from functools import partial, lru_cache -from typing import Sequence, Tuple -import numpy as np from multimethod import multimethod from uniseg.graphemecluster import grapheme_clusters -from tqdm import tqdm from rapidfuzz.distance import Levenshtein from .extracted_text import ExtractedText -from .config import Config @multimethod diff --git a/qurator/dinglehopper/ocr_files.py b/qurator/dinglehopper/ocr_files.py index 69f4df7..94c34d7 100644 --- a/qurator/dinglehopper/ocr_files.py +++ b/qurator/dinglehopper/ocr_files.py @@ -3,7 +3,6 @@ from __future__ import division, print_function import os import sys from typing import Iterator -from warnings import warn from lxml import etree as ET from lxml.etree import XMLSyntaxError