use case · wild
Chengyu (成语) are four-character idioms, usually rooted in a classical story and memorised whole. Mask one character and you're testing whether the model has truly read Chinese — a specialist that has seen the idiom thousands of times snaps to the right character with high confidence.
The intended characters here are 足, 兔, 牢, 蛙, 琴 and 羊. Each idiom carries a short explanatory clause so the mask has context on both sides — mask only the very last character with nothing after it and the model, expecting the sentence to end, tends to guess punctuation instead. When BERT nails the idiom character with a high logit, it's because it memorised the whole expression.
← Practical · Next: Multi-model →