Spaces:
Runtime error
Runtime error
update
Browse files- ctc_eval.py +2 -0
ctc_eval.py
CHANGED
@@ -84,6 +84,8 @@ class CTC_Eval(evaluate.EvaluationModule):
|
|
84 |
def _download_and_prepare(self, dl_manager):
|
85 |
"""Optional: download external resources useful to compute the scores"""
|
86 |
# TODO: Download external resources if needed
|
|
|
|
|
87 |
from ctc_score import StyleTransferScorer, SummarizationScorer, DialogScorer
|
88 |
self.scorer = SummarizationScorer(align='D-cnndm')
|
89 |
|
|
|
84 |
def _download_and_prepare(self, dl_manager):
|
85 |
"""Optional: download external resources useful to compute the scores"""
|
86 |
# TODO: Download external resources if needed
|
87 |
+
import nltk
|
88 |
+
nltk.download('stopwords')
|
89 |
from ctc_score import StyleTransferScorer, SummarizationScorer, DialogScorer
|
90 |
self.scorer = SummarizationScorer(align='D-cnndm')
|
91 |
|