🧹 dinglehopper: Sanitize imports

pull/38/head
Gerber, Mike 4 years ago
parent 1077dc64ce
commit c514abfb9f

@ -6,8 +6,8 @@ from typing import Tuple
from multimethod import multimethod
from uniseg.graphemecluster import grapheme_clusters
from qurator.dinglehopper.edit_distance import distance
from qurator.dinglehopper.extracted_text import ExtractedText
from .edit_distance import distance
from .extracted_text import ExtractedText
@multimethod

@ -3,10 +3,13 @@ import os
import click
from jinja2 import Environment, FileSystemLoader
from markupsafe import escape
from uniseg.graphemecluster import grapheme_clusters
from qurator.dinglehopper import *
from qurator.dinglehopper import ExtractedText
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 extract
def gen_diff_report(gt_in, ocr_in, css_prefix, joiner, none):

@ -8,7 +8,7 @@ import numpy as np
from multimethod import multimethod
from uniseg.graphemecluster import grapheme_clusters
from . import ExtractedText
from .extracted_text import ExtractedText
def levenshtein_matrix(seq1: Sequence, seq2: Sequence):

@ -7,8 +7,8 @@ from ocrd.decorators import ocrd_cli_options, ocrd_cli_wrap_processor
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_cache_clear
from .cli import process as cli_process
from .edit_distance import levenshtein_matrix_cache_clear
log = getLogger('processor.OcrdDinglehopperEvaluate')

@ -1,10 +1,10 @@
import unicodedata
import pytest
from qurator.dinglehopper import ExtractedText
from uniseg.graphemecluster import grapheme_clusters
from qurator.dinglehopper import seq_align
from collections import namedtuple
from .. import seq_align, ExtractedText
def test_text():
test1 = ExtractedText(None, [

Loading…
Cancel
Save