Spaces:
Running
Running
Commit
·
340ebe7
1
Parent(s):
133bb56
Update README.md
Browse files
README.md
CHANGED
@@ -24,10 +24,12 @@ RQUGE score takes three main inputs; "generated_questions" (list of generated qu
|
|
24 |
|
25 |
```python
|
26 |
from evaluate import load
|
|
|
|
|
|
|
27 |
generated_questions = ["how is the weather?"]
|
28 |
contexts = ["the weather is sunny"]
|
29 |
answers = ["sunny"]
|
30 |
-
rqugescore = evaluate.load("rquge_score")
|
31 |
results = rquge.compute(generated_questions=generated_questions, contexts=contexts, answers=answers)
|
32 |
print([round(v, 2) for v in results["score"]])
|
33 |
>>> [5.0]
|
|
|
24 |
|
25 |
```python
|
26 |
from evaluate import load
|
27 |
+
|
28 |
+
rqugescore = load("rquge_score")
|
29 |
+
|
30 |
generated_questions = ["how is the weather?"]
|
31 |
contexts = ["the weather is sunny"]
|
32 |
answers = ["sunny"]
|
|
|
33 |
results = rquge.compute(generated_questions=generated_questions, contexts=contexts, answers=answers)
|
34 |
print([round(v, 2) for v in results["score"]])
|
35 |
>>> [5.0]
|