Skip to content

Commit 740e37d

Browse files
committed
Add language parameter to hanlp_restful.HanLPClient.__call__
1 parent dd18590 commit 740e37d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/hanlp_restful/hanlp_restful/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def __call__(self,
102102
"""
103103
A shortcut of :meth:`~hanlp_restful.HanLPClient.parse`.
104104
"""
105-
return self.parse(text, tokens, tasks, skip_tasks)
105+
return self.parse(text, tokens, tasks, skip_tasks, language)
106106

107107
def about(self) -> Dict[str, Any]:
108108
"""Get the information about server and your client.

plugins/hanlp_restful/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name='hanlp_restful',
13-
version='0.0.9',
13+
version='0.0.10',
1414
description='HanLP: Han Language Processing',
1515
long_description=long_description,
1616
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)