Skip to content
/ DAML Public

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

SleepyBag/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

Python3.7

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

Dataset

If the datasets are not downloaded automatically through git clone, please check the following link to get the dataset and the word embedding:

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published