Skip to content

Generative Adversarial Net for generating replacements for distinct words in sentences

Notifications You must be signed in to change notification settings

generall/WordGAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Generative Adversarial Net for generating replacements for distinct words in sentences

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published