goddoe / text-classification-and-sentence-representation

Sentence representation with CBOW, Relation Network, CNN, Self Attention using PyTorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text Classification and Sentence Representation

PyTorch implementation of several sentence representation methods: CBOW, Relation Network(RN), CNN, Self Attention.

Contents

  • CBOW
  • Relation Network (RN)
  • CNN
  • Self Attention

Experiments

Experiments without fine-tuning.

Common Settings.

  • Dataset: IMDB
  • learning rate: 0.001
Model Epochs Train Accuracy Test Accuracy
CBOW 5 0.95 0.89
RN 5 1.0 0.78
CNN 5 1.0 0.82

About

Sentence representation with CBOW, Relation Network, CNN, Self Attention using PyTorch


Languages

Language:Python 100.0%