Skip to content

Releases: shibing624/pycorrector

1.1.2

08 Jul 10:27

Choose a tag to compare

v1.1.2

import sys

sys.path.append("../..")
from pycorrector.gpt.gpt_corrector import GptCorrector

if __name__ == '__main__':
    error_sentences = [
        '少先队员因该为老人让坐',
        '真麻烦你了。希望你们好好的跳无',
        '机七学习是人工智能领遇最能体现智能的一个分知',
        '一只小鱼船浮在平净的河面上',
        '我的家乡是有明的渔米之乡',
        '目击者称,以军已把封锁路障除去,不过备关卡检查站仍有坦克派驻,车辆已能来往通过,只是流量很漫。',
        '行政相对人对行政机关作出的行政处罚决定不服,不能申请行政服役的是何种行政行为?',
        '“明德慎罚”是殷商初期“天命”、“天罚”思想的继承和发扬',
    ]

    m = GptCorrector("twnlp/ChineseErrorCorrector3-4B")
    batch_res = m.correct_batch(error_sentences,
                                prefix_prompt='你是一个文本纠错专家,纠正输入句子中的语法错误,并输出正确的句子,输入句子为:')
    for i in batch_res:
        print(i)
        print()

Full Changelog: 1.1.1...1.1.2

1.1.1

13 Dec 14:12

Choose a tag to compare

v1.1.1

  1. update get errors by difflib
  2. accelerate proper corrector with tire tree.

What's Changed

New Contributors

Full Changelog: 1.1.0...1.1.1

1.1.0

14 Oct 04:13

Choose a tag to compare

v1.1.0版本

  1. 新增了基于Qwen2.5的中文文本纠错模型,支持多字、少字、错字、词序、语法等错误纠正,发布了shibing624/chinese-text-correction-1.5bshibing624/chinese-text-correction-7b模型,及其对应的LoRA模型。
image

模型效果评估:

eval

Full Changelog: 1.0.2...1.1.0

1.0.2

03 Feb 12:58

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.0.0...1.0.2

1.0.0

07 Nov 05:09

Choose a tag to compare

v1.0.0版本

  1. 新增了ChatGLM3/LLaMA2等GPT模型用于中文文本纠错,发布了基于ChatGLM3-6B的shibing624/chatglm3-6b-csc-chinese-lora拼写和语法纠错模型;
  2. 重写了DeepContext、ConvSeq2Seq、T5等模型的实现。
image

Full Changelog: 0.4.8...1.0.0

0.4.6

17 Jun 09:03

Choose a tag to compare

Full Changelog: 0.4.5...0.4.6

0.4.5

10 May 12:25

Choose a tag to compare

Full Changelog: 0.4.4...0.4.5

0.4.3

21 Mar 08:19
2f2051d

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.4.1...0.4.3

0.3.1

09 May 13:55

Choose a tag to compare

0.3.1,__init__ delete torch import.

0.2.4

06 Apr 13:30

Choose a tag to compare

update demo.