Spaces:
Running
Running
Update Space (evaluate main: 50512323)
Browse files
README.md
CHANGED
@@ -31,7 +31,7 @@ This metric takes as input lists of predicted sentences and reference sentences:
|
|
31 |
```python
|
32 |
>>> predictions = ["hello there", "general kenobi"]
|
33 |
>>> references = ["hello there", "general kenobi"]
|
34 |
-
>>> bleurt = load("bleurt",
|
35 |
>>> results = bleurt.compute(predictions=predictions, references=references)
|
36 |
```
|
37 |
|
@@ -63,7 +63,7 @@ Example with the default model:
|
|
63 |
```python
|
64 |
>>> predictions = ["hello there", "general kenobi"]
|
65 |
>>> references = ["hello there", "general kenobi"]
|
66 |
-
>>> bleurt = load("bleurt",
|
67 |
>>> results = bleurt.compute(predictions=predictions, references=references)
|
68 |
>>> print(results)
|
69 |
{'scores': [1.0295498371124268, 1.0445425510406494]}
|
@@ -73,7 +73,7 @@ Example with the `"bleurt-base-128"` model checkpoint:
|
|
73 |
```python
|
74 |
>>> predictions = ["hello there", "general kenobi"]
|
75 |
>>> references = ["hello there", "general kenobi"]
|
76 |
-
>>> bleurt = load("bleurt",
|
77 |
>>> results = bleurt.compute(predictions=predictions, references=references)
|
78 |
>>> print(results)
|
79 |
{'scores': [1.0295498371124268, 1.0445425510406494]}
|
|
|
31 |
```python
|
32 |
>>> predictions = ["hello there", "general kenobi"]
|
33 |
>>> references = ["hello there", "general kenobi"]
|
34 |
+
>>> bleurt = load("bleurt", module_type="metric")
|
35 |
>>> results = bleurt.compute(predictions=predictions, references=references)
|
36 |
```
|
37 |
|
|
|
63 |
```python
|
64 |
>>> predictions = ["hello there", "general kenobi"]
|
65 |
>>> references = ["hello there", "general kenobi"]
|
66 |
+
>>> bleurt = load("bleurt", module_type="metric")
|
67 |
>>> results = bleurt.compute(predictions=predictions, references=references)
|
68 |
>>> print(results)
|
69 |
{'scores': [1.0295498371124268, 1.0445425510406494]}
|
|
|
73 |
```python
|
74 |
>>> predictions = ["hello there", "general kenobi"]
|
75 |
>>> references = ["hello there", "general kenobi"]
|
76 |
+
>>> bleurt = load("bleurt", module_type="metric", checkpoint="bleurt-base-128")
|
77 |
>>> results = bleurt.compute(predictions=predictions, references=references)
|
78 |
>>> print(results)
|
79 |
{'scores': [1.0295498371124268, 1.0445425510406494]}
|