bert_for_corrector:基于bert进行中文文本纠错-源码

上传者: 42132354 | 上传时间: 2021-09-18 11:54:45 | 文件大小: 17.04MB | 文件类型: ZIP
BERT模型具有遮罩功能的正确错误字符 实在抱歉,之前做项目比较急,然后没有完全上传完文件,导致大家使用受阻,替换更新有人提醒该模型,近期发生,特意将奉上,提取码为:hhxx另外其中某些得文件也有发表,安心食用。 使用说明 保存预训练模型在数据文件夹下├──数据│├──bert_config.json │├──config.json │├──pytorch_model.bin │└──vocab.txt ├──bert_corrector.py ├──config.py ├──logger.py ├──Forecast_mask.py ├──README.md └──text_utils.py 运行bert_corrector.py可以进行bert_corrector.py 。 python bert_corrector.py 运行'predict_mask.py'可以直接观察用[m

文件下载

资源详情

[{"title":"( 29 个子文件 17.04MB ) bert_for_corrector:基于bert进行中文文本纠错-源码","children":[{"title":"bert_for_corrector-master","children":[{"title":"utils","children":[{"title":"tokenizer.py <span style='color:#111;'> 3.33KB </span>","children":null,"spread":false},{"title":"math_utils.py <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"text_utils.py <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"zh_wiki.py <span style='color:#111;'> 139.89KB </span>","children":null,"spread":false},{"title":"logger.py <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"langconv.py <span style='color:#111;'> 7.88KB </span>","children":null,"spread":false},{"title":"get_file.py <span style='color:#111;'> 12.29KB </span>","children":null,"spread":false}],"spread":true},{"title":"config.py <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"bert_corrector.py <span style='color:#111;'> 3.58KB </span>","children":null,"spread":false},{"title":"text_utils.py <span style='color:#111;'> 5.13KB </span>","children":null,"spread":false},{"title":"detector.py <span style='color:#111;'> 16.13KB </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 79B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"corrector.py <span style='color:#111;'> 10.53KB </span>","children":null,"spread":false},{"title":"data","children":[{"title":"common_char_set.txt <span style='color:#111;'> 13.68KB </span>","children":null,"spread":false},{"title":"word_freq.txt <span style='color:#111;'> 8.19MB </span>","children":null,"spread":false},{"title":"stopwords.txt <span style='color:#111;'> 8.92KB </span>","children":null,"spread":false},{"title":"kenlm","children":[{"title":"people_chars_lm.klm <span style='color:#111;'> 20.10MB </span>","children":null,"spread":false}],"spread":true},{"title":"custom_confusion.txt <span style='color:#111;'> 25.02KB </span>","children":null,"spread":false},{"title":"bert_models","children":[{"title":"chinese_finetuned_lm","children":[{"title":"bert文件夹 <span style='color:#111;'> 1B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"place_name.txt <span style='color:#111;'> 625.65KB </span>","children":null,"spread":false},{"title":"person_name.txt <span style='color:#111;'> 159.34KB </span>","children":null,"spread":false},{"title":"custom_word_freq.txt <span style='color:#111;'> 455B </span>","children":null,"spread":false},{"title":"same_pinyin.txt <span style='color:#111;'> 193.18KB </span>","children":null,"spread":false},{"title":"same_stroke.txt <span style='color:#111;'> 6.58KB </span>","children":null,"spread":false}],"spread":false},{"title":"run_lm_finetuning.py <span style='color:#111;'> 27.17KB </span>","children":null,"spread":false},{"title":"logger.py <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"langconv.py <span style='color:#111;'> 7.88KB </span>","children":null,"spread":false},{"title":"predict_mask.py <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明