shibing624 / mengzi-t5-base-chinese-correction

huggingface.co
Total runs: 1.1K
24-hour runs: 0
7-day runs: -23
30-day runs: 108
Model's Last Updated: February 19 2024
text2text-generation

Introduction of mengzi-t5-base-chinese-correction

Model Details of mengzi-t5-base-chinese-correction

T5 for Chinese Spelling Correction Model

中文拼写纠错模型

shibing624/mengzi-t5-base-chinese-correction evaluate SIGHAN2015 test data:

  • Sentence Level: precision:0.8321, recall:0.6390, f1:0.7229

训练使用的数据集为下方提供的“SIGHAN+Wang271K中文纠错数据集”,在SIGHAN2015的测试集上达到接近SOTA水平。

未改动模型结构,finetune中文纠错数据集,评估纠错效果很好,模型潜力巨大。

Usage

本项目开源在中文文本纠错项目: pycorrector ,可支持t5模型,通过如下命令调用:

pip install -U pycorrector

run:

from pycorrector.t5.t5_corrector import T5Corrector
nlp = T5Corrector("shibing624/mengzi-t5-base-chinese-correction").batch_t5_correct
i = "今天新情很好"
print(i, ' => ', nlp([i]))

output:

今天新情很好  =>  今天心情很好 [('新', '心', 2, 3)]

模型文件组成:

mengzi-t5-base-chinese-correction
|-- config.json
|-- pytorch_model.bin
|-- special_tokens_map.json
|-- spiece.model
|-- tokenizer_config.json
`-- tokenizer.json

如果需要训练t5-correction,请参考 https://github.com/shibing624/pycorrector/tree/master/pycorrector/t5

训练数据集
SIGHAN+Wang271K中文纠错数据集
数据集 语料 下载链接 压缩包大小
SIGHAN+Wang271K中文纠错数据集 SIGHAN+Wang271K(27万条) 百度网盘(密码01b9) 106M
原始SIGHAN数据集 SIGHAN13 14 15 官方csc.html 339K
原始Wang271K数据集 Wang271K Automatic-Corpus-Generation dimmywang提供 93M

SIGHAN+Wang271K中文纠错数据集,数据格式:

[
    {
        "id": "B2-4029-3",
        "original_text": "晚间会听到嗓音,白天的时候大家都不会太在意,但是在睡觉的时候这嗓音成为大家的恶梦。",
        "wrong_ids": [
            5,
            31
        ],
        "correct_text": "晚间会听到噪音,白天的时候大家都不会太在意,但是在睡觉的时候这噪音成为大家的恶梦。"
    },
]
Citation
@software{pycorrector,
  author = {Xu Ming},
  title = {pycorrector: Text Error Correction Tool},
  year = {2021},
  url = {https://github.com/shibing624/pycorrector},
}

Runs of shibing624 mengzi-t5-base-chinese-correction on huggingface.co

1.1K
Total runs
0
24-hour runs
-18
3-day runs
-23
7-day runs
108
30-day runs

More Information About mengzi-t5-base-chinese-correction huggingface.co Model

More mengzi-t5-base-chinese-correction license Visit here:

https://choosealicense.com/licenses/apache-2.0

mengzi-t5-base-chinese-correction huggingface.co

mengzi-t5-base-chinese-correction huggingface.co is an AI model on huggingface.co that provides mengzi-t5-base-chinese-correction's model effect (), which can be used instantly with this shibing624 mengzi-t5-base-chinese-correction model. huggingface.co supports a free trial of the mengzi-t5-base-chinese-correction model, and also provides paid use of the mengzi-t5-base-chinese-correction. Support call mengzi-t5-base-chinese-correction model through api, including Node.js, Python, http.

mengzi-t5-base-chinese-correction huggingface.co Url

https://huggingface.co/shibing624/mengzi-t5-base-chinese-correction

shibing624 mengzi-t5-base-chinese-correction online free

mengzi-t5-base-chinese-correction huggingface.co is an online trial and call api platform, which integrates mengzi-t5-base-chinese-correction's modeling effects, including api services, and provides a free online trial of mengzi-t5-base-chinese-correction, you can try mengzi-t5-base-chinese-correction online for free by clicking the link below.

shibing624 mengzi-t5-base-chinese-correction online free url in huggingface.co:

https://huggingface.co/shibing624/mengzi-t5-base-chinese-correction

mengzi-t5-base-chinese-correction install

mengzi-t5-base-chinese-correction is an open source model from GitHub that offers a free installation service, and any user can find mengzi-t5-base-chinese-correction on GitHub to install. At the same time, huggingface.co provides the effect of mengzi-t5-base-chinese-correction install, users can directly use mengzi-t5-base-chinese-correction installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

mengzi-t5-base-chinese-correction install url in huggingface.co:

https://huggingface.co/shibing624/mengzi-t5-base-chinese-correction

Url of mengzi-t5-base-chinese-correction

mengzi-t5-base-chinese-correction huggingface.co Url

Provider of mengzi-t5-base-chinese-correction huggingface.co

shibing624
ORGANIZATIONS

Other API from shibing624