InsaneLife / NLPDataAugmentation

Chinese NLP Data Augmentation, BERT Contextual Augmentation
111 stars 24 forks source link

Conditional BERT Contextual Augmentation #1

Open wang-na opened 3 years ago

wang-na commented 3 years ago

Hi, I have a question about "Conditional BERT Contextual Augmentation", in readme.md, you said: _> 主要参考Context Augmentation,通过Bi-LSTM训练语言模型,并且加入了数据label来控制生成。

Conditional BERT Contextual Augmentation,在前文基础上引入了BERT。_

In conditional BERT Contextual Augmentation, label and finetune are used. I want to ask, where can I find the relative codes for these functions?

Thank you very much!

InsaneLife commented 3 years ago

作者没有开源代码,但我理解可以将bert预训练的源码中的segment_id转换成训练数据的label id即可。