All Projects → ccsasuke → Man

ccsasuke / Man

Licence: mit
Multinomial Adversarial Networks for Multi-Domain Text Classification (NAACL 2018)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Man

Electra
中文 预训练 ELECTRA 模型: 基于对抗学习 pretrain Chinese Model
Stars: ✭ 132 (+83.33%)
Mutual labels:  gan, adversarial-networks
Zhihu
This repo contains the source code in my personal column (https://zhuanlan.zhihu.com/zhaoyeyu), implemented using Python 3.6. Including Natural Language Processing and Computer Vision projects, such as text generation, machine translation, deep convolution GAN and other actual combat code.
Stars: ✭ 3,307 (+4493.06%)
Mutual labels:  natural-language-processing, gan
Combogan
Stars: ✭ 134 (+86.11%)
Mutual labels:  gan, domain-adaptation
Lsd Seg
Learning from Synthetic Data: Addressing Domain Shift for Semantic Segmentation
Stars: ✭ 99 (+37.5%)
Mutual labels:  gan, domain-adaptation
Adversarial video generation
A TensorFlow Implementation of "Deep Multi-Scale Video Prediction Beyond Mean Square Error" by Mathieu, Couprie & LeCun.
Stars: ✭ 662 (+819.44%)
Mutual labels:  gan, adversarial-networks
Generate to adapt
Implementation of "Generate To Adapt: Aligning Domains using Generative Adversarial Networks"
Stars: ✭ 120 (+66.67%)
Mutual labels:  gan, domain-adaptation
adapt
Awesome Domain Adaptation Python Toolbox
Stars: ✭ 46 (-36.11%)
Mutual labels:  adversarial-networks, domain-adaptation
Convolutional Handwriting Gan
ScrabbleGAN: Semi-Supervised Varying Length Handwritten Text Generation (CVPR20)
Stars: ✭ 107 (+48.61%)
Mutual labels:  gan, domain-adaptation
All About The Gan
All About the GANs(Generative Adversarial Networks) - Summarized lists for GAN
Stars: ✭ 630 (+775%)
Mutual labels:  gan, adversarial-networks
Seqgan
A simplified PyTorch implementation of "SeqGAN: Sequence Generative Adversarial Nets with Policy Gradient." (Yu, Lantao, et al.)
Stars: ✭ 502 (+597.22%)
Mutual labels:  natural-language-processing, gan
PerceptualGAN
Pytorch implementation of Image Manipulation with Perceptual Discriminators paper
Stars: ✭ 119 (+65.28%)
Mutual labels:  gan, adversarial-networks
Adversarialnetspapers
Awesome paper list with code about generative adversarial nets
Stars: ✭ 6,219 (+8537.5%)
Mutual labels:  gan, adversarial-networks
Textgan Pytorch
TextGAN is a PyTorch framework for Generative Adversarial Networks (GANs) based text generation models.
Stars: ✭ 479 (+565.28%)
Mutual labels:  natural-language-processing, gan
Machine Learning
머신러닝 입문자 혹은 스터디를 준비하시는 분들에게 도움이 되고자 만든 repository입니다. (This repository is intented for helping whom are interested in machine learning study)
Stars: ✭ 705 (+879.17%)
Mutual labels:  natural-language-processing, gan
Lightning Bolts
Toolbox of models, callbacks, and datasets for AI/ML researchers.
Stars: ✭ 829 (+1051.39%)
Mutual labels:  natural-language-processing, gan
Pacgan
[NeurIPS 2018] [JSAIT] PacGAN: The power of two samples in generative adversarial networks
Stars: ✭ 67 (-6.94%)
Mutual labels:  gan
Sequentialdata Gan
Tensorflow Implementation of GAN modeling for sequential data
Stars: ✭ 69 (-4.17%)
Mutual labels:  gan
Cross Domain ner
Cross-domain NER using cross-domain language modeling, code for ACL 2019 paper
Stars: ✭ 67 (-6.94%)
Mutual labels:  domain-adaptation
Pix2pix
Image-to-image translation with conditional adversarial nets
Stars: ✭ 8,765 (+12073.61%)
Mutual labels:  gan
Geneva
Code to train and evaluate the GeNeVA-GAN model for the GeNeVA task proposed in our ICCV 2019 paper "Tell, Draw, and Repeat: Generating and modifying images based on continual linguistic instruction"
Stars: ✭ 71 (-1.39%)
Mutual labels:  gan

Multinomial Adversarial Nets

This repo contains the source code for our paper:

Multinomial Adversarial Networks for Multi-Domain Text Classification
Xilun Chen, Claire Cardie
NAACL-HLT 2018
paper, bibtex

Requirements:

  • Python 3.6
  • PyTorch 0.4
  • PyTorchNet
  • scipy
  • tqdm (for progress bar)

An Anaconda environment.yml file is also provided.

Dev version

The dev branch contains a full version of our code, including some options we experimented but did not include in the final version.

Follow-up Paper

You might also be interested in our follow-up ACL 2019 paper (source code available here) with an improved model and better performance.

Before Running

The pre-trained word embeddings file exceeds the 100MB limit of github, and is thus provided as a gzipped tar ball. Please run the following command to extract it first:

tar -xvf data/w2v/word2vec.tar.gz -C data/w2v/

Experiment 1: MDTC on the multi-domain Amazon dataset

cd code/
python train_man_exp1.py --dataset prep-amazon --model mlp

Experiment 2: Multi-Source Domain Adaptation

cd code/
# target domain: books
python train_man_exp2.py --dataset prep-amazon --model mlp --no_wgan_trick --domains dvd electronics kitchen --unlabeled_domains books --dev_domains books
# target domain: dvd
python train_man_exp2.py --dataset prep-amazon --model mlp --no_wgan_trick --domains books electronics kitchen --unlabeled_domains dvd --dev_domains dvd
# target domain: electronics
python train_man_exp2.py --dataset prep-amazon --model mlp --no_wgan_trick --domains books dvd kitchen --unlabeled_domains electronics --dev_domains electronics
# target domain: kitchen
python train_man_exp2.py --dataset prep-amazon --model mlp --no_wgan_trick --domains dvd electronics kitchen --unlabeled_domains kitchen --dev_domains kitchen

Experiment 3: MDTC on the FDU-MTL dataset

cd code/
python train_man_exp3.py --dataset fdu-mtl --model cnn --max_epoch 50

A larger batch size can also be used to reduce the training time.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].