Skip to content

Commit 6e45df1

Browse files
committed
fix nltk import failing
1 parent ba60756 commit 6e45df1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/lighteval/tasks/extended/ifeval/instructions_utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ def download_nltk_resources():
2828
except LookupError:
2929
nltk.download("punkt")
3030

31+
try:
32+
nltk.data.find("tokenizers/punkt_tab")
33+
except LookupError:
34+
nltk.download("punkt_tab")
35+
3136

3237
download_nltk_resources()
3338

0 commit comments

Comments
 (0)