Skip to content

Commit 3bafb2c

Browse files
committed
Fix dep key of to_pretty
1 parent 1197741 commit 3bafb2c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

plugins/hanlp_common/hanlp_common/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def to_pretty(self, tok='tok', lem='lem', pos='pos', dep='dep', sdp='sdp', ner='
208208
tok = prefix_match(tok, self)
209209
pos = prefix_match(pos, self)
210210
ner = prefix_match(ner, self)
211-
conlls = self.to_conll(tok, lem, pos, dep, sdp)
211+
conlls = self.to_conll(tok=tok, lem=lem, pos=pos, dep=dep, sdp=sdp)
212212
flat = isinstance(conlls, CoNLLSentence)
213213
if flat:
214214
conlls: List[CoNLLSentence] = [conlls]

plugins/hanlp_common/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_common',
13-
version='0.0.21',
13+
version='0.0.22',
1414
description='HanLP: Han Language Processing',
1515
long_description=long_description,
1616
long_description_content_type="text/markdown",

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
'transformers>=4.1.1',
6565
'sentencepiece>=0.1.91', # Essential for tokenization_bert_japanese
6666
'torch>=1.6.0',
67-
'hanlp-common>=0.0.21',
67+
'hanlp-common>=0.0.22',
6868
'hanlp-trie>=0.0.4',
6969
'hanlp-downloader',
7070
*TOKENIZERS,

0 commit comments

Comments
 (0)