Remeris commited on
Commit
80f1b3b
1 Parent(s): 265d2a4

Update rouge_ru.py

Browse files
Files changed (1) hide show
  1. rouge_ru.py +2 -0
rouge_ru.py CHANGED
@@ -27,6 +27,7 @@ import six # Here to have a nice missing dependency error message early on
27
  from nltk.corpus import stopwords
28
  from nltk.tokenize import word_tokenize
29
  from rouge_score import rouge_scorer, scoring
 
30
 
31
  _CITATION = """\
32
  @inproceedings{lin-2004-rouge,
@@ -84,6 +85,7 @@ Examples:
84
  """
85
 
86
 
 
87
  def tokenize_normalize_ru(
88
  row,
89
  normalizer_foo: Callable,
 
27
  from nltk.corpus import stopwords
28
  from nltk.tokenize import word_tokenize
29
  from rouge_score import rouge_scorer, scoring
30
+ nltk.download('stopwords')
31
 
32
  _CITATION = """\
33
  @inproceedings{lin-2004-rouge,
 
85
  """
86
 
87
 
88
+
89
  def tokenize_normalize_ru(
90
  row,
91
  normalizer_foo: Callable,