lvwerra HF staff commited on
Commit
9951e41
1 Parent(s): 07d14f2

Update Space (evaluate main: b3f3c02c)

Browse files
Files changed (2) hide show
  1. meteor.py +3 -1
  2. requirements.txt +1 -1
meteor.py CHANGED
@@ -120,7 +120,9 @@ class Meteor(evaluate.Metric):
120
  import nltk
121
 
122
  nltk.download("wordnet")
123
- if NLTK_VERSION >= version.Version("3.6.5"):
 
 
124
  nltk.download("punkt")
125
  if NLTK_VERSION >= version.Version("3.6.6"):
126
  nltk.download("omw-1.4")
 
120
  import nltk
121
 
122
  nltk.download("wordnet")
123
+ if NLTK_VERSION >= version.Version("3.9.0"):
124
+ nltk.download("punkt_tab")
125
+ elif NLTK_VERSION >= version.Version("3.6.5"):
126
  nltk.download("punkt")
127
  if NLTK_VERSION >= version.Version("3.6.6"):
128
  nltk.download("omw-1.4")
requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
- git+https://github.com/huggingface/evaluate@eb4dac25d8dd9086efc57aeec07b01c5e5270cca
2
  nltk
 
1
+ git+https://github.com/huggingface/evaluate@b3f3c02ce2d972bc0e59e346b3318ca2f537e060
2
  nltk