pytorch transformers
MC-BERT is a novel conceptualized representation learning approach for the medical domain. First, we use a different mask generation procedure to mask spans of tokens, rather than only random ones. We also introduce two kinds of masking strategies, namely whole entity masking and whole span masking. Finally, MC-BERT split the input document into segments based on the actual "sentences" provided by the user as positive samples and sample random sentences from other documents as negative samples for the next sentence prediction.


![](https://github.com/alibaba-research/ChineseBLUE/raw/master/figs/c_bert_model.jpg)

More detail:
https://github.com/alibaba-research/ChineseBLUE