Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
@@ -42,15 +42,15 @@ At minimum, this metric requires predictions and references as inputs.
|
|
42 |
|
43 |
```python
|
44 |
>>> segmentation_scores = evaluate.load("transformersegmentation/segmentation_scores")
|
45 |
-
>>> results = segmentation_scores.compute(references=["w ɛ ɹ
|
46 |
>>> print(results)
|
47 |
{'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}
|
48 |
|
49 |
```
|
50 |
|
51 |
### Inputs
|
52 |
-
- **predictions** (`list` of `str`): Predicted segmentations, with characters separated with spaces and word boundaries marked with "
|
53 |
-
- **references** (`list` of `str`): Ground truth segmentations, with characters separated with spaces and word boundaries marked with "
|
54 |
|
55 |
### Output Values
|
56 |
|
|
|
42 |
|
43 |
```python
|
44 |
>>> segmentation_scores = evaluate.load("transformersegmentation/segmentation_scores")
|
45 |
+
>>> results = segmentation_scores.compute(references=["w ɛ ɹ WORD_BOUNDARY ɪ z WORD_BOUNDARY ð ɪ s WORD_BOUNDARY", "l ɪ ɾ əl WORD_BOUNDARY aɪ z WORD_BOUNDARY"], predictions=["w ɛ ɹ WORD_BOUNDARY ɪ z WORD_BOUNDARY ð ɪ s WORD_BOUNDARY", "l ɪ ɾ əl WORD_BOUNDARY aɪ z WORD_BOUNDARY"])
|
46 |
>>> print(results)
|
47 |
{'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}
|
48 |
|
49 |
```
|
50 |
|
51 |
### Inputs
|
52 |
+
- **predictions** (`list` of `str`): Predicted segmentations, with characters separated with spaces and word boundaries marked with "WORD_BOUNDARY".
|
53 |
+
- **references** (`list` of `str`): Ground truth segmentations, with characters separated with spaces and word boundaries marked with "WORD_BOUNDARY".
|
54 |
|
55 |
### Output Values
|
56 |
|