BertModel icon indicating copy to clipboard operation
BertModel copied to clipboard

利用bert预训练模型生成句向量或词向量

Results 2 BertModel issues
Sort by recently updated
recently updated
newest added

我的场景是两个文本的相似度,思路是:微调后,抽取的最后一层池化作为了句向量,用余弦来计算相似度。是768维的,效果还可以,后来因为有个需求需要降低到128维,我直接在768维后面接了一个全连接降到128维了。但是效果就不好了....是不是这种方式不可行?