Skip to content

Commit 53b9aff

Browse files
committed
Update core.py
1 parent e8e68a7 commit 53b9aff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pythainlp/parse/core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,9 @@ def dependency_parsing(text: str, model: str=None, engine: str="esupar")->str:
8484
elif engine == "spacy_thai":
8585
from pythainlp.parse.spacy_thai_engine import Parse
8686
_tagger = Parse()
87+
else:
88+
raise NotImplementedError(
89+
"The engine doesn't support."
90+
)
8791
_tagger_name = engine
8892
return _tagger(text)

0 commit comments

Comments
 (0)