We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 016ea11 commit 7c44b64Copy full SHA for 7c44b64
pythainlp/spell/phunspell.py
@@ -13,7 +13,10 @@
13
"""
14
from typing import List
15
16
-import phunspell
+try:
17
+ import phunspell
18
+except ImportError:
19
+ raise ImportError("Import Error; Install phunspell by pip install phunspell")
20
21
pspell = phunspell.Phunspell("th_TH")
22
pythainlp/spell/symspellpy.py
@@ -15,7 +15,10 @@
-from symspellpy import SymSpell, Verbosity
+ import symspellpy
+ raise ImportError("Import Error; Install symspellpy by pip install symspellpy")
23
from pythainlp.corpus import get_corpus_path, path_pythainlp_corpus
24
0 commit comments