Skip to content

Commit e92bdbb

Browse files
Copilotbact
andcommitted
Fix NNER.tag return type for better type safety
Co-authored-by: bact <128572+bact@users.noreply.github.com>
1 parent eef69e9 commit e92bdbb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pythainlp/tag/named_entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def load_engine(self, engine: str = "thai_nner") -> None:
123123

124124
self.engine = Thai_NNER()
125125

126-
def tag(self, text: str) -> tuple[list[str], list[dict[Any, Any]]]:
126+
def tag(self, text: str) -> tuple[list[str], list[dict[str, Any]]]:
127127
"""This function tags nested named entities.
128128
129129
:param str text: text in Thai to be tagged

0 commit comments

Comments
 (0)