项目作者: HansiZeng

项目描述 :
Pytorch implementations of several text semantic matching models. The repository currently contains ESIM, CAFE, RE2
高级语言: Python
项目地址: git://github.com/HansiZeng/text-semantic-matching.git
创建时间: 2020-10-22T01:20:15Z
项目社区:https://github.com/HansiZeng/text-semantic-matching

开源协议:

下载


text-semantic-matching

The repository contains several Pytorch model implementations for text semantic matching. The implemented models are as followed,

Data Preparation

  1. cd setup
  2. bash setup_snli.sh

Run Model

  1. python train.py --model="esim" # run ESIM model
  2. or
  3. python train.py --model="cafe" # run CAFE model
  4. or
  5. python train.py --model="re2" # run RE2 model

Performance

We report the performance of ESIM, CAFE, RE2 in the SNLI dataset
| Models | Accuracy |
|—-|—-|
| ESIM | 88.325 |
| CAFE | 87.320 |
| RE2 | 88.458 |