Wang Shuohuan
Wang Shuohuan
好的,以下是修改部分的代码,主要是改了attention def lstm_decoder_with_attention(enc_vec, enc_proj, current_word): decoder_mem = memory( name='lstm_decoder', size=decoder_size, boot_layer=decoder_boot) with mixed_layer(size=enc_vec.size, name="attention_transform_1") as m: m += full_matrix_projection( decoder_mem, param_attr=None) expanded = expand_layer( input=m, expand_as=enc_vec, name='attention_expand') with mixed_layer(size=1, name="attention_transform_2")...
我把几个mix_layer的size都print了,没有为0的
好的,谢谢,请问下fluid版本的seq2seq网络可以在哪里能找到呢?
语言模型和这个差别比较大。Seq2Seq的,只有Transformer吗
旧版本中,两个同长度的序列向量相乘,应该用什么layer呢?
Thanks,问题已解决,是词的概率,但是没有输出长度,相对id会少一个。
相较于BERT模型 ,ERNIE模型在学习过程中,对词、实体等先验知识进行完整的掩码,使得模型能够直接对语义知识进行建模,学习更加完整的语义单元和真实世界的实体关系。具体可以看下这个:https://www.jiqizhixin.com/articles/2019-03-16-3
Most of the top leaderboard submissions are ensembles and muli-task learning. We mainly focus on single-task single models for comparision previously. We will do ensemble experiments and release the result...
The code and models of ERNIE-M had been available at https://github.com/PaddlePaddle/ERNIE/tree/repro/ernie-m .
The code and models of ERNIE-M had been available at https://github.com/PaddlePaddle/ERNIE/tree/repro/ernie-m .