mirror of
https://github.com/qurator-spk/dinglehopper.git
synced 2025-06-09 03:40:12 +02:00
Add metrics parameter to integration test
This commit is contained in:
parent
7642a53091
commit
12dcdb81da
2 changed files with 5 additions and 2 deletions
|
@ -61,8 +61,8 @@
|
||||||
{% for result in metrics_results.values() %}
|
{% for result in metrics_results.values() %}
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">{{ result.metric.replace("_", " ") }}</th>
|
<th scope="row">{{ result.metric.replace("_", " ") }}</th>
|
||||||
<td>{{ result.accuracy }}</td>
|
<td>{{ result.accuracy|round(4) }}</td>
|
||||||
<td>{{ result.error_rate }}</td>
|
<td>{{ result.error_rate|round(4) }}</td>
|
||||||
<td>{{ result.reference_elements }}</td>
|
<td>{{ result.reference_elements }}</td>
|
||||||
<td>{{ result.compared_elements }}</td>
|
<td>{{ result.compared_elements }}</td>
|
||||||
<td>{{ result.weighted_errors }}</td>
|
<td>{{ result.weighted_errors }}</td>
|
||||||
|
|
|
@ -34,6 +34,9 @@ def test_ocrd_cli(tmp_path):
|
||||||
"OCR-D-GT-PAGE,OCR-D-OCR-CALAMARI",
|
"OCR-D-GT-PAGE,OCR-D-OCR-CALAMARI",
|
||||||
"-O",
|
"-O",
|
||||||
"OCR-D-OCR-CALAMARI-EVAL",
|
"OCR-D-OCR-CALAMARI-EVAL",
|
||||||
|
"-P",
|
||||||
|
"metrics",
|
||||||
|
"ca,wa,boc,bow",
|
||||||
]
|
]
|
||||||
sys.argv[
|
sys.argv[
|
||||||
1:
|
1:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue