Total Pageviews

Saturday 8 June 2024

esim-response-selection

  arxiv.org/pdf/1901.02609.pdf 

Requirement

  1. gensim
pip install gensim
  1. Tensorflow 1.9-1.12 + Python2.7

Steps

  1. Download the Ubuntu dataset released by (Xu et al, 2017)

  2. Unzip the dataset and put data directory into data/

  3. Preprocess dataset, including concatenatate context and build vocabulary

cd data
python prepare.py
  1. Train word2vec
bash run_train_word2vec.sh
  1. Train and test ESIM, the log information is in log.txt file. You could find an example log file in log_example.txt.
cd scripts/esim
bash run.sh
from https://github.com/alibaba/esim-response-selection 

 

No comments:

Post a Comment