🧹 Make dinglehopper.* exports explicit

pull/90/head
Mike Gerber 1 year ago
parent bc6754d0cb
commit 1dad18909c

@ -1,5 +1,32 @@
from .align import *
from .character_error_rate import *
from .extracted_text import *
from .ocr_files import *
from .word_error_rate import *
from .align import align, seq_align
from .character_error_rate import character_error_rate, character_error_rate_n
from .edit_distance import distance, editops
from .extracted_text import ExtractedText
from .ocr_files import (
alto_namespace,
alto_text,
page_namespace,
page_text,
plain_text,
text,
)
from .word_error_rate import word_error_rate, word_error_rate_n, words
__all__ = [
"editops",
"distance",
"align",
"seq_align",
"character_error_rate",
"character_error_rate_n",
"word_error_rate",
"word_error_rate_n",
"words",
"ExtractedText",
"alto_namespace",
"alto_text",
"page_namespace",
"page_text",
"plain_text",
"text",
]

@ -1,6 +1,8 @@
import unicodedata
from rapidfuzz.distance import Levenshtein
from .edit_distance import *
from .edit_distance import grapheme_clusters
def align(t1, t2):

@ -7,7 +7,7 @@ import uniseg.wordbreak
from multimethod import multimethod
from rapidfuzz.distance import Levenshtein
from . import ExtractedText
from .extracted_text import ExtractedText
# Did we patch uniseg.wordbreak.word_break already?
word_break_patched = False

Loading…
Cancel
Save