Skip to content

Commit c01f4f6

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

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

hanlp/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Author: hankcs
33
# Date: 2019-12-28 19:26
44

5-
__version__ = '2.1.0-beta.63'
5+
__version__ = '2.1.0-beta.64'
66
"""HanLP version"""
77

88

plugins/hanlp_common/hanlp_common/document.py

+1-1
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

+1-1
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

+1-1
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)