Skip to content

Commit 3af8925

Browse files
authored
Fix nltk import failing (#1013)
1 parent 090630e commit 3af8925

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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)