Spaces:
Runtime error
Runtime error
Fixed the nltk error
Browse files
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 |
-
|
| 254 |
-
|
|
|
|
| 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,
|