• Stars
    star
    4
  • Rank 3,304,323 (Top 66 %)
  • Language
    Python
  • Created over 5 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Generative Adversarial Net for generating replacements for distinct words in sentences

WordGAN

(Work in progress)

Generative Adversarial Net for generating replacements for distinct words in sentences.

Required data

  • Word Embeddings - regular word embeddings like word2vec, GloVe, fastText. ELMo, BERT and other context embeddings could not be used in this configuration

  • Word dictionary - list of good words which could be used as replacement words

  • Train corpora - large text collection to train on.

Train model with downloading all dependencies

Overview

About sequential GANs - Goodfellow's comment

Setup

  • Why generate synonyms with GANs
    • Language models don't optimized to use information about replaced words
  • Why generator should have bigger context
    • cause it should force generator to use information from existing word
    • In other case it discriminator itself works exactly like language model - decide which sentences are probable and which are not. But if generator will use same information as discriminator it may start working as LM as well. To prevent this scenario we give discriminator more information about the context, so it enforces generator to use information from the target word.