Open qinya opened 6 years ago
What do you specifically mean?
I want to connect CRF behind LSTM+Attention and do NER. I tried but failed. I added CRF when calculating loss.
you can do it like this,
output = Bidirectional(LSTM())
output = AttentionDecoder()(output)
output = TimeDistributed(Dense(num_class))(output)
output = crf(output)
What should I do if I follow the attention layer behind the CRF layer?