1
0
Fork 0
mirror of https://github.com/qurator-spk/dinglehopper.git synced 2025-07-11 19:39:59 +02:00

1 more update for core's getLogger context

This commit is contained in:
Robert Sachunsky 2020-11-03 17:46:59 +01:00 committed by GitHub
parent a51f0b3dcd
commit a60c14351e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,9 +10,6 @@ import numpy as np
from lxml import etree as ET from lxml import etree as ET
from ocrd_utils import getLogger from ocrd_utils import getLogger
LOG = getLogger('processor.OcrdDinglehopperEvaluate')
class Normalization(enum.Enum): class Normalization(enum.Enum):
NFC = 1 NFC = 1
NFC_MUFI = 2 # TODO NFC_MUFI = 2 # TODO
@ -246,6 +243,7 @@ def get_textequiv_unicode(text_segment, nsmap) -> str:
def get_first_textequiv(textequivs, segment_id): def get_first_textequiv(textequivs, segment_id):
"""Get the first TextEquiv based on index or conf order if index is not present.""" """Get the first TextEquiv based on index or conf order if index is not present."""
LOG = getLogger('processor.OcrdDinglehopperEvaluate')
if len(textequivs) == 1: if len(textequivs) == 1:
return textequivs[0] return textequivs[0]