Spaces:
Sleeping
Sleeping
Minor
Browse files
README.md
CHANGED
@@ -31,12 +31,7 @@ Before using this metric, you need to install the dependencies -
|
|
31 |
pip install -U sentence-transformers scikit-learn nltk
|
32 |
```
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
- `predictions` - List of predictions. Format varies based on `tokenize_sentences` and `multi_references` flags.
|
37 |
-
- `references`: List of references. Format varies based on `tokenize_sentences` and `multi_references` flags.
|
38 |
-
|
39 |
-
|
40 |
```python
|
41 |
from evaluate import load
|
42 |
predictions = [
|
@@ -54,6 +49,11 @@ for score in results:
|
|
54 |
```
|
55 |
|
56 |
|
|
|
|
|
|
|
|
|
|
|
57 |
Sem-F1 also accepts multiple optional arguments:
|
58 |
|
59 |
|
|
|
31 |
pip install -U sentence-transformers scikit-learn nltk
|
32 |
```
|
33 |
|
34 |
+
#### Python Usage
|
|
|
|
|
|
|
|
|
|
|
35 |
```python
|
36 |
from evaluate import load
|
37 |
predictions = [
|
|
|
49 |
```
|
50 |
|
51 |
|
52 |
+
Sem-F1 takes 2 mandatory arguments:
|
53 |
+
|
54 |
+
- `predictions` - List of predictions. Format varies based on `tokenize_sentences` and `multi_references` flags.
|
55 |
+
- `references`: List of references. Format varies based on `tokenize_sentences` and `multi_references` flags.
|
56 |
+
|
57 |
Sem-F1 also accepts multiple optional arguments:
|
58 |
|
59 |
|