Guzpenha / DomainRegularizedDeepMatchingNetworks

Source code for paper "Domain Adaptation for Conversation Response Ranking" at CAIR'20

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Domain Adaptation for Conversation Response Ranking

This repo contains the implementation of two regularization techniques for Deep Matching Networks, built on top of the code from https://github.com/yangliuy/NeuralResponseRanking. We added a parameter to employ either Domain Adversarial Learning (DAL) to induce domain-agnostic representations, or to apply multi-task learning for domain classification (MTL) inducing domain-aware representations. We modified the .config files to receive extra inputs such as the out-of-domain prediction set.

Image Title

To enable MTL or DAL use the following parameter with either 'DMN-ADL' or 'DMN-MTL'as input :

 python main_conversation_qa.py --domain_training_type '$REGULARIZATION'

To see some examples and run the code you can also use this google colab notebook that clones the repo, downloads the dataset and run experiments.

About

Source code for paper "Domain Adaptation for Conversation Response Ranking" at CAIR'20

License:MIT License


Languages

Language:Python 58.8%Language:Java 23.2%Language:Shell 18.0%