Giter Site home page Giter Site logo

distributional-discrepancy's Introduction

Distributional Discrepancy: A Metric for Unconditional Text Generation

Code for: Distributional Discrepancy: A Metric for Unconditional Text Generation

Requirement

We suggest you run the platform under Python 3.6+ with following libs:

  • tensorflow>=1.12.0
  • tensorflow_hub>=0.7.0
  • numpy 1.16.4
  • scipy 1.3.1
  • nltk 3.4.5
  • colorama 0.4.1
  • CUDA 7.5+ (Suggested for GPU speed up, not compulsory)

Or just type pip install -r requirements.txt in your terminal.

Get Started

git clone https://github.com/anonymous1100/Distributional-Discrepancy.git
cd Distributional-Discrepancy
# run with default setting
python main.py

#You can also change the model and data in main.py and then run main.py

Structure

  • data folder: emnlp_news and image_coco dataset
  • models folder: Training codes for LSTM and GPT-2
  • utils folder: code for some evaluation
  • experiments folder: Experimental results
    • experiments/experiment_name/tmp folder: Generated samples
    • experiments/experiment_name/output folder: some output files
    • experiments/experiment_name/ckpts folder: Trained model
    • experiments/experiment_name/summary folder: tensorboard record

Contact

For any questions, feel free to open an issue via github, or to send me an email at
[email protected].

distributional-discrepancy's People

Contributors

cp-pc avatar

Watchers

Aashiq Muhamed avatar  avatar paper2code - bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.