Skip to content

Commit 0993959

Browse files
authored
Update spellcheck.yml
1 parent 6ff7eb7 commit 0993959

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/spellcheck.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,18 @@ jobs:
4343
import nltk
4444
from nltk.tokenize import sent_tokenize
4545
from fuzzywuzzy import process
46+
import os
4647
47-
# ✅ Ensure 'punkt' is available
48+
# ✅ Ensure 'punkt' is correctly installed
4849
nltk.download('punkt', quiet=True)
50+
51+
# ✅ Force correct data path setup
4952
nltk.data.path.append('/usr/share/nltk_data')
5053
51-
# ✅ Force loading the tokenizer to avoid lookup errors
54+
# ✅ Override incorrect reference to punkt_tab
55+
os.environ["NLTK_DATA"] = "/usr/share/nltk_data"
56+
57+
# ✅ Load tokenizer directly to ensure no incorrect lookup occurs
5258
_ = nltk.data.load('tokenizers/punkt/english.pickle')
5359
5460
# Load spellcheck ignore list with case sensitivity

0 commit comments

Comments
 (0)