Skip to content

Commit

Permalink
update setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
shibing624 committed Mar 14, 2022
1 parent 312859a commit 347f045
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),该脚本有两个功能:
Expand Down
2 changes: 1 addition & 1 deletion pycorrector/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
@author:XuMing([email protected])
@description: version
"""
__version__ = '0.4.2'
__version__ = '0.4.3'
2 changes: 0 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 7 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__,
Expand All @@ -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']}
)

0 comments on commit 347f045

Please sign in to comment.