728 GitHub stars and counting — ymcui/MacBERT is a multi-language project TopGit is tracking across repositories on the platform. Revisiting Pre-trained Models for Chinese Natural Language Processing (MacBERT)
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
2020/9/15 论文"Revisiting Pre-Trained Models for Chinese Natural Language Processing" 被Findings of EMNLP 录用为长文。
目录
章节
描述
简介
简要介绍MacBERT
下载
下载MacBERT
快速加载
介绍如何使用 🤗Transformers 快速加载模型
基线效果
在中文NLP任务上的效果
FAQ
常见问题
引用
文章引用信息
简介
MacBERT 是BERT的改进版本,引入了纠错型掩码语言模型(MLM as correction,Mac)预训练任务,缓解了“预训练-下游任务”不一致的问题。
掩码语言模型(MLM)中,引入了[MASK]标记进行掩码,但[MASK]标记并不会出现在下游任务中。在MacBERT中,我们使用相似词来取代[MASK]标记。相似词通过Synonyms toolkit (Wang and Hu, 2017)工具获取,算法基于word2vec (Mikolov et al., 2013)相似度计算。同时我们也引入了Whole Word Masking(wwm)和N-gram masking技术。当要对N-gram进行掩码时,我们会对N-gram里的每个词分别查找相似词。当没有相似词可替换时,我们将使用随机词进行替换。
以下是训练样本示例。
例子
原始句子
we use a language model to predict the probability of the next word.
MLM
we use a language [M] to [M] ##di ##ct the pro [M] ##bility of the next word .
Whole word masking
we use a language [M] to [M] [M] [M] the [M] [M] [M] of the next word .
N-gram masking
we use a [M] [M] to [M] [M] [M] the [M] [M] [M] [M] [M] next word .
MLM as correction
we use a text system to ca ##lc ##ulate the po ##si ##bility of the next word .
MacBERT的主要框架与BERT完全一致,可在不修改现有代码的基础上进行无缝过渡。
更多细节请参考我们的论文:Revisiting Pre-trained Models for Chinese Natural Language Processing
@inproceedings{cui-etal-2020-revisiting,
title = "Revisiting Pre-Trained Models for {C}hinese Natural Language Processing",
author = "Cui, Yiming and
Che, Wanxiang and
Liu, Ting and
Qin, Bing and
Wang, Shijin and
Hu, Guoping",
booktitle = "Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: Findings",
month = nov,
year = "2020",
address = "Online",
publisher = "Association for Computational Linguistics",
url = "https://www.aclweb.org/anthology/2020.findings-emnlp.58",
pages = "657--668",
}
或者:
@journal{cui-etal-2021-pretrain,
title={Pre-Training with Whole Word Masking for Chinese BERT},
author={Cui, Yiming and Che, Wanxiang and Liu, Ting and Qin, Bing and Yang, Ziqing},
journal={IEEE Transactions on Audio, Speech and Language Processing},
year={2021},
url={https://ieeexplore.ieee.org/document/9599397},
doi={10.1109/TASLP.2021.3124365},
}
The most recent commit recorded on ymcui/MacBERT was 7 months ago, based on the GitHub push timestamp. The repository has 61 forks — one of the better signals of community interest.
How does ymcui/MacBERT compare to other AI Tools projects?
ymcui/MacBERT is tracked by TopGit in the AI Tools category, with 728 GitHub stars. Browse the AI Tools topic page on TopGit to compare it against similar projects by stars and activity.
How many stars does ymcui/MacBERT have?
ymcui/MacBERT has 728 GitHub stars — refresh the page for the live number, or check github.com/ymcui/MacBERT. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is ymcui/MacBERT open source?
Yes — ymcui/MacBERT ships under the Apache-2.0 license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/ymcui/MacBERT.
What is ymcui/MacBERT?
ymcui/MacBERT (ymcui/MacBERT) is a multi-language project on GitHub. From the project's own README: Revisiting Pre-trained Models for Chinese Natural Language Processing (MacBERT)
Where do I read more about ymcui/MacBERT?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/ymcui/MacBERT is the definitive source.
Read full README in the tab above.
Curious whether MacBERT is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about MacBERT.