We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ff7eb7 commit 0993959Copy full SHA for 0993959
.github/workflows/spellcheck.yml
@@ -43,12 +43,18 @@ jobs:
43
import nltk
44
from nltk.tokenize import sent_tokenize
45
from fuzzywuzzy import process
46
+ import os
47
- # ✅ Ensure 'punkt' is available
48
+ # ✅ Ensure 'punkt' is correctly installed
49
nltk.download('punkt', quiet=True)
50
+
51
+ # ✅ Force correct data path setup
52
nltk.data.path.append('/usr/share/nltk_data')
53
- # ✅ 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
58
_ = nltk.data.load('tokenizers/punkt/english.pickle')
59
60
# Load spellcheck ignore list with case sensitivity
0 commit comments