Recent Releases of pycorrector

pycorrector - 1.1.2

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: https://github.com/shibing624/pycorrector/compare/1.1.1...1.1.2

- Python
Published by shibing624 8 months ago

pycorrector - 1.1.1

v1.1.1

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

What's Changed

  • feat:添加HillZhang1999的两个开源纠错模型 by @smartmark-pro in https://github.com/shibing624/pycorrector/pull/527

New Contributors

  • @smartmark-pro made their first contribution in https://github.com/shibing624/pycorrector/pull/527

Full Changelog: https://github.com/shibing624/pycorrector/compare/1.1.0...1.1.1

- Python
Published by shibing624 about 1 year ago

pycorrector - 1.1.0

v1.1.0版本

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

模型效果评估:

eval

Full Changelog: https://github.com/shibing624/pycorrector/compare/1.0.2...1.1.0

- Python
Published by shibing624 over 1 year ago

pycorrector - 1.0.2

What's Changed

  • Llm by @shibing624 in https://github.com/shibing624/pycorrector/pull/431
  • Llm by @shibing624 in https://github.com/shibing624/pycorrector/pull/432
  • 库依赖跟新和最低版本要求更新 by @Vela-zz in https://github.com/shibing624/pycorrector/pull/444
  • Fix issue #470: Improve how confusion words are located and/or replaced by @treya-lin in https://github.com/shibing624/pycorrector/pull/471

New Contributors

  • @Vela-zz made their first contribution in https://github.com/shibing624/pycorrector/pull/444
  • @treya-lin made their first contribution in https://github.com/shibing624/pycorrector/pull/471

Full Changelog: https://github.com/shibing624/pycorrector/compare/1.0.0...1.0.2

- Python
Published by shibing624 about 2 years ago

pycorrector - 1.0.0

v1.0.0版本

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

Full Changelog: https://github.com/shibing624/pycorrector/compare/0.4.8...1.0.0

- Python
Published by shibing624 over 2 years ago

pycorrector - 0.4.6

Full Changelog: https://github.com/shibing624/pycorrector/compare/0.4.5...0.4.6

- Python
Published by shibing624 over 3 years ago

pycorrector - 0.4.5

Full Changelog: https://github.com/shibing624/pycorrector/compare/0.4.4...0.4.5

- Python
Published by shibing624 almost 4 years ago

pycorrector - 0.4.3

What's Changed

  • Add ernie-csc model by @joey12300 in https://github.com/shibing624/pycorrector/pull/252
  • Update: the description for MacBERT. by @okcd00 in https://github.com/shibing624/pycorrector/pull/259
  • Solve the misalignment problem on UNK tokens (MacBERT). by @okcd00 in https://github.com/shibing624/pycorrector/pull/261

New Contributors

  • @joey12300 made their first contribution in https://github.com/shibing624/pycorrector/pull/252
  • @okcd00 made their first contribution in https://github.com/shibing624/pycorrector/pull/259

Full Changelog: https://github.com/shibing624/pycorrector/compare/0.4.1...0.4.3

- Python
Published by shibing624 almost 4 years ago

pycorrector -

- Python
Published by shibing624 almost 5 years ago

pycorrector -

- Python
Published by shibing624 almost 5 years ago