pytorch-sentiment-analysis icon indicating copy to clipboard operation
pytorch-sentiment-analysis copied to clipboard

Add Attention to the classification models

Open TharinduDR opened this issue 5 years ago • 6 comments

Thank you for the wonderful repo and tutorials. Do you have an implementation to add attention to the classification models with torchtext?

TharinduDR avatar Jan 02 '20 18:01 TharinduDR

If you know of any papers/models that have an attention based model for sequence classification, let me know and I can look into adding those. Usually attention is used for sequence-to-sequence learning, and I have some tutorials on that which use attention, see: https://github.com/bentrevett/pytorch-seq2seq tutorials 3 onwards.

bentrevett avatar Jan 07 '20 14:01 bentrevett

https://arxiv.org/pdf/1409.0473.pdf

anuraggoel70 avatar Feb 29 '20 08:02 anuraggoel70

That model is for sequence-to-sequence learning, not sequence classification.

bentrevett avatar Mar 02 '20 15:03 bentrevett

Hi @bentrevett Was just checking on the issue - people have used it for many Kaggle competitions commonly. One such example is this - https://www.kaggle.com/hung96ad/pytorch-starter

TharinduDR avatar Mar 02 '20 15:03 TharinduDR

Thanks for the link. Will check it out.

bentrevett avatar Mar 02 '20 15:03 bentrevett

i want to work on this issue, is it still open?

karan121bhukar avatar Aug 30 '21 11:08 karan121bhukar