Word Embedding Preparation 5. BERT

BERT 

  • Published by Google in 2018
  • Bidirectional Encoder Representation from Transformers
  • Two Phrases: Pre-training, fine-turning
  • Use Transformer proposed in Attention Is All You Need by Google 2017 to replace RNN
  • BERT takes advantages of multiple models. (1)predict word from given contect -Word2Vec CBOW,(2) 2-layer bidirectional model - ElMo, (3) Transformer instead of RNN-GPT(Generative Pre-trainning)

BERT-Mustked Languaged Model 

BERT uses Language Model to train model. inspired by the Cloze Task.

Mask 15% words of doc(for dropout to prevent weights over focus on some )

  • 80% use "[MASK]"
  • 10% use original word
  • 10% use a random word

Input = [CLS] the man went to [MASK] store [SEP] he bought a gallon [MASK] milk [SEP]

Label = IsNext

Input = [CLS] the man [MASK] to the store [SEP] penguin [MASK] are fligh ## less birds [SEP]

Label = NotNext

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值