From af8e20973d8812110567bf3b025db035b936492a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ming=20Xu=20=28=E5=BE=90=E6=98=8E=29?= Date: Wed, 26 Jul 2023 16:46:33 +0800 Subject: [PATCH 1/2] Update ernie_csc_corrector.py --- pycorrector/ernie_csc/ernie_csc_corrector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycorrector/ernie_csc/ernie_csc_corrector.py b/pycorrector/ernie_csc/ernie_csc_corrector.py index 0d53a4e1..806a28c9 100644 --- a/pycorrector/ernie_csc/ernie_csc_corrector.py +++ b/pycorrector/ernie_csc/ernie_csc_corrector.py @@ -15,7 +15,7 @@ class ErnieCSCCorrector(object): - def __init__(self, model="csc-ernie-1.0"): + def __init__(self, model="ernie-csc"): self.text_correction = Taskflow("text_correction", model=model) def ernie_csc_correct(self, text): From ea5e57e6f54cf472206a79814390a8958e10b90b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ming=20Xu=20=28=E5=BE=90=E6=98=8E=29?= Date: Tue, 22 Aug 2023 17:56:06 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c45a77f7..fb391af1 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ # pycorrector: useful python text correction toolkit [![PyPI version](https://badge.fury.io/py/pycorrector.svg)](https://badge.fury.io/py/pycorrector) -[![Downloads](https://pepy.tech/badge/pycorrector)](https://pepy.tech/project/pycorrector) +[![Downloads](https://static.pepy.tech/badge/pycorrector)](https://pepy.tech/project/pycorrector) [![GitHub contributors](https://img.shields.io/github/contributors/shibing624/pycorrector.svg)](https://github.com/shibing624/pycorrector/graphs/contributors) [![License Apache 2.0](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE) [![python_vesion](https://img.shields.io/badge/Python-3.6%2B-green.svg)](requirements.txt)