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:
parent
7642a53091
commit
12dcdb81da
2 changed files with 5 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue