Spaces:
Running
Running
shounakpaul95
commited on
Commit
•
9c5e08b
1
Parent(s):
4eff21d
Update eval_utils.py
Browse files- eval_utils.py +4 -0
eval_utils.py
CHANGED
@@ -5,6 +5,10 @@ from collections import defaultdict
|
|
5 |
import evaluate
|
6 |
import nltk
|
7 |
import numpy as np
|
|
|
|
|
|
|
|
|
8 |
from nervaluate import Evaluator
|
9 |
# from rouge_score import rouge_scorer
|
10 |
from sacrebleu.metrics import BLEU, CHRF
|
|
|
5 |
import evaluate
|
6 |
import nltk
|
7 |
import numpy as np
|
8 |
+
|
9 |
+
!python -m pip install py-rouge
|
10 |
+
!python -m pip install nervaluate
|
11 |
+
|
12 |
from nervaluate import Evaluator
|
13 |
# from rouge_score import rouge_scorer
|
14 |
from sacrebleu.metrics import BLEU, CHRF
|