nbansal commited on
Commit
f6ab8c5
1 Parent(s): 64ec1e5

Fixed the nltk error

Browse files
Files changed (1) hide show
  1. semf1.py +3 -2
semf1.py CHANGED
@@ -250,8 +250,9 @@ class SemF1(evaluate.Metric):
250
  def _download_and_prepare(self, dl_manager):
251
  """Optional: download external resources useful to compute the scores"""
252
  import nltk
253
- if not nltk.data.find("tokenizers/punkt"):
254
- nltk.download("punkt", quiet=True)
 
255
 
256
  def _compute(
257
  self,
 
250
  def _download_and_prepare(self, dl_manager):
251
  """Optional: download external resources useful to compute the scores"""
252
  import nltk
253
+ nltk.download("punkt", quiet=True)
254
+ # if not nltk.data.find("tokenizers/punkt"):
255
+
256
 
257
  def _compute(
258
  self,