Downloads · 30 days
0
shibing624/chinese-kenlm-klm
chinese-kenlm-klm is a machine learning model from shibing624. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as bigscience-bloom-rail-1.0.
Downloads · 30 days
0
Access
Public
Updated Nov 8, 2023
Repo size
3.1 GB
Likes
3
Public
Click a slice to open those files.
.klm3.1 GB · 100%
From the Hugging Face model README
kenlm language model:
本项目开源在 pycorrector 项目:pycorrector,可支持kenlm模型,通过如下命令调用:
Install package:
pip install -U pycorrector
from pycorrector import Corrector
model = Corrector(language_model_path='people2014corpus_chars.klm')
print(model.correct('少先队员因该为老人让坐')) # ['少先队员应该为老人让座。']
如果需要训练文本纠错模型,请参考https://github.com/shibing624/pycorrector
@software{pycorrector,
author = {Ming Xu},
title = {pycorrector: Text Error Correction Tool},
year = {2023},
url = {https://github.com/shibing624/pycorrector},
}