Spaces:
Runtime error
Runtime error
Update tests.py
Browse files
tests.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
test_cases = [
|
2 |
{
|
3 |
-
"predictions": ["w ɛ ɹ
|
4 |
-
"references": ["w ɛ ɹ
|
5 |
"result": {'type_fscore': 1.0, 'type_precision': 1.0, 'type_recall': 1.0, 'token_fscore': 1.0, 'token_precision': 1.0, 'token_recall': 1.0, 'boundary_all_fscore': 1.0, 'boundary_all_precision': 1.0, 'boundary_all_recall': 1.0, 'boundary_noedge_fscore': 1.0, 'boundary_noedge_precision': 1.0, 'boundary_noedge_recall': 1.0}
|
6 |
},
|
7 |
{
|
8 |
-
"predictions": ["
|
9 |
-
"references": ["
|
10 |
"result": {'type_fscore': 0.8, 'type_precision': 0.8, 'type_recall': 0.8, 'token_fscore': 0.73, 'token_precision': 0.8, 'token_recall': 0.67, 'boundary_all_fscore': 1.0, 'boundary_all_precision': 1.0, 'boundary_all_recall': 0.94, 'boundary_noedge_fscore': 0.89, 'boundary_noedge_precision': 1.0, 'boundary_noedge_recall': 0.8}
|
11 |
}
|
12 |
]
|
|
|
1 |
test_cases = [
|
2 |
{
|
3 |
+
"predictions": ["w ɛ ɹ WORD_BOUNDARY ɪ z WORD_BOUNDARY ð ɪ s WORD_BOUNDARY", "l ɪ ɾ əl WORD_BOUNDARY aɪ z WORD_BOUNDARY"],
|
4 |
+
"references": ["w ɛ ɹ WORD_BOUNDARY ɪ z WORD_BOUNDARY ð ɪ s WORD_BOUNDARY", "l ɪ ɾ əl WORD_BOUNDARY aɪ z WORD_BOUNDARY"],
|
5 |
"result": {'type_fscore': 1.0, 'type_precision': 1.0, 'type_recall': 1.0, 'token_fscore': 1.0, 'token_precision': 1.0, 'token_recall': 1.0, 'boundary_all_fscore': 1.0, 'boundary_all_precision': 1.0, 'boundary_all_recall': 1.0, 'boundary_noedge_fscore': 1.0, 'boundary_noedge_precision': 1.0, 'boundary_noedge_recall': 1.0}
|
6 |
},
|
7 |
{
|
8 |
+
"predictions": ["t h e d o g WORD_BOUNDARY i s WORD_BOUNDARY i n WORD_BOUNDARY t h e WORD_BOUNDARY b o a t WORD_BOUNDARY"],
|
9 |
+
"references": ["t h e WORD_BOUNDARY d o g WORD_BOUNDARY i s WORD_BOUNDARY i n WORD_BOUNDARY t h e WORD_BOUNDARY b o a t WORD_BOUNDARY"],
|
10 |
"result": {'type_fscore': 0.8, 'type_precision': 0.8, 'type_recall': 0.8, 'token_fscore': 0.73, 'token_precision': 0.8, 'token_recall': 0.67, 'boundary_all_fscore': 1.0, 'boundary_all_precision': 1.0, 'boundary_all_recall': 0.94, 'boundary_noedge_fscore': 0.89, 'boundary_noedge_precision': 1.0, 'boundary_noedge_recall': 0.8}
|
11 |
}
|
12 |
]
|