Coder Social home page Coder Social logo

dp_qa_joint_model's Introduction

DP_QA_joint_model

This is the code for the paper Multi-tasking Dialogue Comprehension with Discourse Parsing

Environment requirement

Python 3.8
pytorch

Instruction

  • Train the model and predict.
python run_molweni_mdfn.py \
--model_type bert-molweni-baseline \
--model_name_or_path "bert-large-uncased-whole-word-masking" \
--data_dir "molweni/Molweni/MRC" \
--version_2_with_negative \
--output_dir "experiment_output" \
--do_train \
--do_eval \
--do_lower_case \
--overwrite_output_dir \
--num_train_epochs 2 \
--per_gpu_train_batch_size 8 \
--learning_rate 2e-5 \
--save_steps 500 \
--dropout 0.2 \
--eval_all_checkpoints \
--task 0 \
--weight_decay 0.01 \
--warmup_step 100

The dataset Molweni can be downloaded from https://github.com/HIT-SCIR/Molweni. The parameter 'task' refers to the model to run: 0----multi-tasking model, 1----QA-only model, 2----DP-only model.

Reference

If you use this code please cite our paper:

@inproceedings{he2021multi,
  title={Multi-tasking Dialogue Comprehension with Discourse Parsing},
  author={He, Yuchen and Zhang, Zhuosheng and Zhao, Hai},
  booktitle={Proceedings of the 35th Pacific Asia Conference on Language, Information and Computation},
  pages={69--79},
  year={2021}
}

dp_qa_joint_model's People

Contributors

21644h avatar cooelf avatar

Stargazers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.