From de1a1bc89b04dec9127d0482561009d9d919c9e0 Mon Sep 17 00:00:00 2001 From: Arthit Suriyawongkul Date: Tue, 12 Dec 2023 08:18:05 +0000 Subject: [PATCH] model: str --> model: Union[str, None] --- pythainlp/parse/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pythainlp/parse/core.py b/pythainlp/parse/core.py index 1dcb9e4da..5dfe6aa8f 100644 --- a/pythainlp/parse/core.py +++ b/pythainlp/parse/core.py @@ -10,7 +10,10 @@ def dependency_parsing( - text: str, model: str = "", tag: str = "str", engine: str = "esupar" + text: str, + model: Union[str, None] = None, + tag: str = "str", + engine: str = "esupar", ) -> Union[List[List[str]], str]: """ Dependency Parsing