Spaces:
Build error
Build error
He-Xingwei
commited on
Commit
•
9212aa7
1
Parent(s):
a9e82d2
Add my new, shiny module.
Browse files- README.md +4 -2
- sari_metric.py +2 -1
README.md
CHANGED
@@ -104,7 +104,8 @@ predictions=["About 95 species are currently accepted ."]
|
|
104 |
references=[["About 95 species are currently accepted ."]]
|
105 |
results = sari.compute(sources=sources, predictions=predictions, references=references)
|
106 |
print(results)
|
107 |
-
{'sari': 100.0, 'keep':
|
|
|
108 |
```
|
109 |
|
110 |
Partial match between prediction and reference:
|
@@ -117,7 +118,8 @@ predictions=["About 95 you now get in ."]
|
|
117 |
references=[["About 95 species are currently known .","About 95 species are now accepted .","95 species are now accepted ."]]
|
118 |
results = sari.compute(sources=sources, predictions=predictions, references=references)
|
119 |
print(results)
|
120 |
-
{'sari': 26.953601953601954, 'keep':
|
|
|
121 |
```
|
122 |
|
123 |
## Limitations and bias
|
|
|
104 |
references=[["About 95 species are currently accepted ."]]
|
105 |
results = sari.compute(sources=sources, predictions=predictions, references=references)
|
106 |
print(results)
|
107 |
+
{'sari': 100.0, 'keep': 100.0, 'del': 100.0, 'add': 100.0}
|
108 |
+
|
109 |
```
|
110 |
|
111 |
Partial match between prediction and reference:
|
|
|
118 |
references=[["About 95 species are currently known .","About 95 species are now accepted .","95 species are now accepted ."]]
|
119 |
results = sari.compute(sources=sources, predictions=predictions, references=references)
|
120 |
print(results)
|
121 |
+
{'sari': 26.953601953601954, 'keep': 22.527472527472526, 'del': 50.0, 'add': 8.333333333333332}
|
122 |
+
|
123 |
```
|
124 |
|
125 |
## Limitations and bias
|
sari_metric.py
CHANGED
@@ -78,7 +78,8 @@ Examples:
|
|
78 |
>>> sari = evaluate.load("sari")
|
79 |
>>> results = sari.compute(sources=sources, predictions=predictions, references=references)
|
80 |
>>> print(results)
|
81 |
-
{'sari': 26.953601953601954, 'keep': 22.
|
|
|
82 |
"""
|
83 |
|
84 |
|
|
|
78 |
>>> sari = evaluate.load("sari")
|
79 |
>>> results = sari.compute(sources=sources, predictions=predictions, references=references)
|
80 |
>>> print(results)
|
81 |
+
{'sari': 26.953601953601954, 'keep': 22.527472527472526, 'del': 50.0, 'add': 8.333333333333332}
|
82 |
+
|
83 |
"""
|
84 |
|
85 |
|