mirror of
				https://github.com/qurator-spk/dinglehopper.git
				synced 2025-11-04 11:24:17 +01:00 
			
		
		
		
	🧹 Make dinglehopper.* exports explicit
This commit is contained in:
		
							parent
							
								
									bc6754d0cb
								
							
						
					
					
						commit
						1dad18909c
					
				
					 3 changed files with 36 additions and 7 deletions
				
			
		| 
						 | 
					@ -1,5 +1,32 @@
 | 
				
			||||||
from .align import *
 | 
					from .align import align, seq_align
 | 
				
			||||||
from .character_error_rate import *
 | 
					from .character_error_rate import character_error_rate, character_error_rate_n
 | 
				
			||||||
from .extracted_text import *
 | 
					from .edit_distance import distance, editops
 | 
				
			||||||
from .ocr_files import *
 | 
					from .extracted_text import ExtractedText
 | 
				
			||||||
from .word_error_rate import *
 | 
					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 rapidfuzz.distance import Levenshtein
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from .edit_distance import *
 | 
					from .edit_distance import grapheme_clusters
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def align(t1, t2):
 | 
					def align(t1, t2):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,7 +7,7 @@ import uniseg.wordbreak
 | 
				
			||||||
from multimethod import multimethod
 | 
					from multimethod import multimethod
 | 
				
			||||||
from rapidfuzz.distance import Levenshtein
 | 
					from rapidfuzz.distance import Levenshtein
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from . import ExtractedText
 | 
					from .extracted_text import ExtractedText
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Did we patch uniseg.wordbreak.word_break already?
 | 
					# Did we patch uniseg.wordbreak.word_break already?
 | 
				
			||||||
word_break_patched = False
 | 
					word_break_patched = False
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue