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