From de8cc1714cbd010157205569d02a8485171b668a Mon Sep 17 00:00:00 2001 From: tlk-dsg <467460833@qq.com> Date: Tue, 16 Nov 2021 15:57:42 +0800 Subject: [PATCH] fix bug --- setup.py | 2 +- .../attribution_extraction/standard/tools/preprocess.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index ffab249..e0e08e9 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages setup( name='deepke', # 打包后的包文件名 - version='0.2.87', #版本号 + version='0.2.89', #版本号 keywords=["pip", "RE","NER","AE"], # 关键字 description='DeepKE 是基于 Pytorch 的深度学习中文关系抽取处理套件。', # 说明 long_description="client", #详细说明 diff --git a/src/deepke/attribution_extraction/standard/tools/preprocess.py b/src/deepke/attribution_extraction/standard/tools/preprocess.py index 441f77e..8261c4f 100644 --- a/src/deepke/attribution_extraction/standard/tools/preprocess.py +++ b/src/deepke/attribution_extraction/standard/tools/preprocess.py @@ -112,9 +112,9 @@ def preprocess(cfg): logger.info('serialize sentence into tokens...') serializer = Serializer(do_chinese_split=cfg.chinese_split, do_lower_case=True) serial = serializer.serialize - _serialize_sentence(train_data, serial, cfg) - _serialize_sentence(valid_data, serial, cfg) - _serialize_sentence(test_data, serial, cfg) + _serialize_sentence(train_data, serial) + _serialize_sentence(valid_data, serial) + _serialize_sentence(test_data, serial) logger.info('build vocabulary...') vocab = Vocab('word')