Skip to content

Machine Comprehension train on MSMARCO with S-NET extraction modification

Notifications You must be signed in to change notification settings

shubhampachori12110095/MSMARCO

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MSMARCO with S-NET extraction

Requirements

Here are some required libraries for training.

General

  • python3.6
  • cuda-9.0 (CNTK required)
  • openmpi-1.10 (CNTK required)
  • gcc >= 6 (CNTK required)

Python

  • Please refer requirements.txt

Usage

Preprocess

MSMARCO V1

Download MSMARCO v1 dataset, GloVe embedding.

cd data
python3.6 download.py v1

Convert raw data to tsv format

python3.6 convert_msmarco.py --threads=`nproc` 

Convert tsv format to ctf(CNTK input) format and build vocabs dictionary

python3.6 tsv2ctf.py

Generate elmo embedding

sh elmo.sh

MSMARCO V2

Download MSMARCO v2 dataset, GloVe embedding.

cd data
python3.6 download.py v2

Convert raw data to tsv format

python3.6 convert_msmarco.py --threads=`nproc` --ratio=0.1

Convert tsv format to ctf(CNTK input) format and build vocabs dictionary

python3.6 tsv2ctf.py

Generate elmo embedding

sh elmo.sh

Train (Same for V1 and V2)

cd ../script
mkdir log
sh run.sh

Evaluate develop dataset

MSMARCO V1

cd Evaluation
sh eval.sh v1

MSMARCO v2

cd Evaluation
sh eval.sh v2

Performance

Paper

rouge-l bleu_1
S-Net (Extraction) 41.45 44.08
S-Net (Extraction, Ensemble) 42.92 44.97

This implementation

rouge-l bleu_1
MSMARCO v1 w/o elmo 38.43 39.14
MSMARCO v1 w/ elmo 39.42 39.47
MSMARCO v2 w/ elmo 43.66 44.44

TODO

  • Multi-threads preprocessing
  • Elmo-Embedding
  • Evaluation script
  • MSMARCO v2 support
  • Reasonable metrics

About

Machine Comprehension train on MSMARCO with S-NET extraction modification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.7%
  • Shell 4.3%