From 347f04540e27273c9f985daa08e0c1cbef76082d Mon Sep 17 00:00:00 2001 From: shibing624 Date: Mon, 14 Mar 2022 16:00:14 +0800 Subject: [PATCH] update setup. --- README.md | 7 ++----- pycorrector/version.py | 2 +- requirements-dev.txt | 2 -- setup.py | 14 +++++++------- 4 files changed, 10 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 578b2c8f..2fc42b8b 100644 --- a/README.md +++ b/README.md @@ -20,15 +20,12 @@ - [Question](#Question) - [Solution](#Solution) -- [Evaluate](#Evaluate) +- [Evaluation](#Evaluation) - [Install](#install) - [Usage](#usage) - [Deep Model Usage](#deep-model-usage) - [Dataset](#Dataset) -- [Custom Language Model](#custom-language-model) - [Contact](#Contact) -- [Citation](#Citation) -- [Contribute](#contribute) - [Reference](#reference) ## Question @@ -104,7 +101,7 @@ HuggingFace Demo: https://huggingface.co/spaces/shibing624/pycorrector ![](docs/hf.png) -## Evaluate +## Evaluation 提供评估脚本[pycorrector/utils/eval.py](./pycorrector/utils/eval.py) 和评估执行脚本[examples/evaluate_models.py](./examples/evaluate_models.py),该脚本有两个功能: diff --git a/pycorrector/version.py b/pycorrector/version.py index 20020364..046ebe33 100644 --- a/pycorrector/version.py +++ b/pycorrector/version.py @@ -3,4 +3,4 @@ @author:XuMing(xuming624@qq.com) @description: version """ -__version__ = '0.4.2' +__version__ = '0.4.3' diff --git a/requirements-dev.txt b/requirements-dev.txt index 1a9fed87..d826ea32 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -4,9 +4,7 @@ scikit-learn>=0.19.1 torch>=1.3.1 pytorch-lightning>=1.1.2 pandas -tqdm==4.50.2 transformers>=4.4.2 -tokenizers tensorboardX paddlenlp paddlepaddle-gpu diff --git a/setup.py b/setup.py index fa8043a3..5a92cbf5 100644 --- a/setup.py +++ b/setup.py @@ -17,9 +17,6 @@ with open('README.md', 'r', encoding='utf-8') as f: readme = f.read() -with open('requirements.txt', 'r', encoding='utf-8') as f: - reqs = f.read() - setup( name='pycorrector', version=__version__, @@ -44,10 +41,13 @@ ], platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], keywords='NLP,correction,Chinese error correction,pycorrector', - install_requires=reqs.strip().split('\n'), + install_requires=[ + "jieba", + "pypinyin", + "numpy", + "six" + ], packages=find_packages(exclude=['tests']), package_dir={'pycorrector': 'pycorrector'}, - package_data={'pycorrector': ['*.*', '../LICENSE', '../README.*', '../*.txt', 'data/*', 'data/en/en.json.gz', - 'utils/*.', 'bert/*', 'deep_context/*', 'conv_seq2seq/*', 'seq2seq_attention/*', - 'transformer/*', 'electra/*', 'macbert/*']} + package_data={'pycorrector': ['*.*', 'data/*', 'data/en/en.json.gz']} )