Skip to content

mithunpaul08/factuality-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

factuality

This is the repository of the factuality prediction project. This repository currently has only one folder containing code of re-implementing Rudinger et al. (2018)’s 2-layer stacked bidirectional linear LSTM model using dynet 2.0.3 instead of pytorch 0.2.0.

Software organization:

The folder L-biLSTM_2\ has the following files:

  • Dockerfile: a docker file to install dependencies and directly run on test data with pre-trained model.
  • factuality_test.py: directly run pre-trained model on test data
  • factuality.py: train the model

Software required

python 3, dynet 2.0.3, numpy 1.13.3

Instruction to run:

  1. Download this repository and unzip it.

  2. Before running code file factuality_test.py, download data files en-ud-test.conllu (to train the model with factuality.py, also download en-ud-train.conllu and en-ud-dev.conllu) and UDS-IH2 and unzip them into the same directory where the Docker file locates.

  3. Download the trained model, including trained.model and tables.txt, to the same directory.

  4. Open terminal and change to the directory where all the files downloaded, then run the following script:

    docker build -t luo-cs585-hw3 -f ./Dockerfile .

About

Event factuality prediction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published