This commit is contained in:
tlk-dsg 2021-11-16 15:57:42 +08:00
parent 9c17d4473f
commit de8cc1714c
2 changed files with 4 additions and 4 deletions

View File

@ -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", #详细说明

View File

@ -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')