How to do selective masking in Language modeling

I think the answer is similar another post: Selective masking in Language modeling