Skip to content

zfjmike/NLUProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Course Project for DS-GA 1012 Natural Language Understanding

This is a repository for an NLU course project by Fangjun Zhang, Nimi Wang and Ruoyu Zhu. We aim at incorporating dependency information into natural language inference and fact verification task. Our model has comparable result to the state-of-the-art methods. We use FEVER dataset for our training data and FEVER score as our evaluation metric. You can find our report at here

Prerequisite

We implement our model based on several packages, including Jack the Reader, FEVER Baseline and additionally UCL MR data downloading script.

Please also install StanfordNLP for dependency parsing preprocessing.

Training

Run the following script would start the whole pipeline for training and validation.

python pipeline.py --config configs/pytorch_depsa_esim_n5.json --overwrite --model [model_name]

Furthermore, if you are using Slrum system on HPC, you can run the sbatch_*.sh script by

sbatch sbatch_*.sh

Visualization

We also provide a simple script for visualizing the self-attention weight, dependency mask and dependency-enhanced self-attention weight.

python jack/visualize.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published