Skip to content

Commit

Permalink
Fix dep key of to_pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Dec 7, 2024
1 parent 1197741 commit c01f4f6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hanlp/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Author: hankcs
# Date: 2019-12-28 19:26

__version__ = '2.1.0-beta.63'
__version__ = '2.1.0-beta.64'
"""HanLP version"""


Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_common/hanlp_common/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def to_pretty(self, tok='tok', lem='lem', pos='pos', dep='dep', sdp='sdp', ner='
tok = prefix_match(tok, self)
pos = prefix_match(pos, self)
ner = prefix_match(ner, self)
conlls = self.to_conll(tok, lem, pos, dep, sdp)
conlls = self.to_conll(tok=tok, lem=lem, pos=pos, dep=dep, sdp=sdp)
flat = isinstance(conlls, CoNLLSentence)
if flat:
conlls: List[CoNLLSentence] = [conlls]
Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_common/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='hanlp_common',
version='0.0.21',
version='0.0.22',
description='HanLP: Han Language Processing',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
'transformers>=4.1.1',
'sentencepiece>=0.1.91', # Essential for tokenization_bert_japanese
'torch>=1.6.0',
'hanlp-common>=0.0.21',
'hanlp-common>=0.0.22',
'hanlp-trie>=0.0.4',
'hanlp-downloader',
*TOKENIZERS,
Expand Down

0 comments on commit c01f4f6

Please sign in to comment.