sequence2sequence using Attention + RNN and sentiment classification using Attention + LSTM with pytorch

seq2seq_pytorch.py

  • Sequence to Sequence Model 모델을 pytorch를 이용하여 Encoder(Gated Recurrent Unit), Decoder(Gated Recurrent Unit), Attention 구현 완료.

  • 데이터는 http://www.manythings.org/anki/ --> French - English fra-eng.zip (177210) data set를 사용.

attention_LSTM.py

  • Many to One : pytorch를 이용하여 LSTM + Attention 감성 분석 예제 구현 완료