1
0
Fork 0
mirror of https://github.com/qurator-spk/dinglehopper.git synced 2025-06-08 19:30:01 +02:00

Add metrics parameter to integration test

This commit is contained in:
Benjamin Rosemann 2021-06-14 17:08:02 +02:00
parent 7642a53091
commit 12dcdb81da
2 changed files with 5 additions and 2 deletions

View file

@ -61,8 +61,8 @@
{% for result in metrics_results.values() %}
<tr>
<th scope="row">{{ result.metric.replace("_", " ") }}</th>
<td>{{ result.accuracy }}</td>
<td>{{ result.error_rate }}</td>
<td>{{ result.accuracy|round(4) }}</td>
<td>{{ result.error_rate|round(4) }}</td>
<td>{{ result.reference_elements }}</td>
<td>{{ result.compared_elements }}</td>
<td>{{ result.weighted_errors }}</td>

View file

@ -34,6 +34,9 @@ def test_ocrd_cli(tmp_path):
"OCR-D-GT-PAGE,OCR-D-OCR-CALAMARI",
"-O",
"OCR-D-OCR-CALAMARI-EVAL",
"-P",
"metrics",
"ca,wa,boc,bow",
]
sys.argv[
1: