Skip to content
/ DAML Public
forked from SleepyBag/DAML

Original Implementation of Improving Domain-Adapted Sentiment Classification by Deep Adversarial Mutual Learning publicized in AAAI-2020

Notifications You must be signed in to change notification settings

liqy2019/DAML

 
 

Repository files navigation

DAML

This is the original implementation of the paper Improving Domain-Adapted Sentiment Classification by Deep Adversarial Mutual Learning publicized in AAAI-2020.

Requirement

Python packages

  • Tensorflow 1.14
  • colored
  • tqdm

Other

  • figlet (install from your system package manager, e.g. apt in Ubuntu or brew in MacOS)

Guide

How to run

To run the naive baseline, just run

python train_naive.py --dataset SOURCE_DOMAIN --unlabeled_dataset TARGET_DOMAIN

To run any other model, just run

python adv_train.py --model MODEL --dataset SOURCE_DOMAIN --unlabeled_dataset TARGET_DOMAIN

Available models

The following model names are available, just as filenames show:

dannadversarial cross-domain training framerwork without Mutual Learning
smlstandard Mutual Learning framework
mlthe proposed Mutual Learning framework
ml3the proposed Mutual Learning framework with 3 models involved
ml4the proposed Mutual Learning framework with 4 models involved

Available datasets

The following dataset names are available, just as shown in directory data/:

  • imdb
  • yelp13
  • elc (Amazon Electronics)
  • clt (Amazon Clothing)
  • cd (Amazon CD)

About

Original Implementation of Improving Domain-Adapted Sentiment Classification by Deep Adversarial Mutual Learning publicized in AAAI-2020

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.4%
  • Scheme 1.5%
  • Roff 0.1%