PyTorch_Bert_Text_Classification icon indicating copy to clipboard operation
PyTorch_Bert_Text_Classification copied to clipboard

Bert feature 里面为什么会有 LSTM 结构

Open ume-technology opened this issue 3 years ago • 1 comments

如题。 我看到博主用的 LSTM 做分类。 但是我想改成 CNN。调试了一下午,代码中 Bert_feature 中包含了一个 LSTM 结构,是我理解预训练模型有问题?不清楚为什么会这样。这套代码整体看起来总觉得怪怪的。

ume-technology avatar Apr 10 '21 12:04 ume-technology

他可能写错了,model里少写了bert层,一般情况下是bert+lstm一起用的

wplf avatar Jul 31 '23 08:07 wplf