Giter Club home page Giter Club logo

film-scripter's Introduction

film-scripter

Deep Learning 02456 Project (Denmark Technical University) Fall 2018

The Dataset

You can find the main dataset on figshare, courtesy of Alberto Acerbi. This dataset contains 1,093 popular movie scripts.

Usage

The folder shakespeare is a dataset of Shakespeare's plays. To run the server,

python3.6 -m pip install Flask
python3.6 server.py

The website is locally hosted at http://127.0.0.1:5000/.

To shutdown, visit

http://127.0.0.1:5000/shutdown

or click the shutdown button.

Thanks

The base of this repository was borrowed from Sean Robertson's char-rnn.pytorch under the MIT License.

The model is based on Andrej Karpathy's popular char-rnn, which is described in detail on his blogpost.

The practice dataset in shakespeare comes from Ravexina's shakespeare-plays-dataset-scraper.

Background image taken from Unsplash's Felix Mooneeram.

film-scripter's People

Contributors

cgoecknerwald avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

film-scripter's Issues

Add Unicode -> ASCII data processing

Auto-convert all Unicode intake to ASCII, with additional flag to disable. Unicode (specifically, the processes under unidecode) may be responsible for tensor-length mismatch bug. Investigate.

Fix 0-dim tensor warning

UserWarning: invalid index of a 0-dim tensor. This will be an error in PyTorch 0.5. Use tensor.item() to convert a 0-dim tensor to a Python number

Simple web app demo

Create a simple web app that uses a saved model trained on a publicly available data such as Shakespeare.

Update default conditions.

$HOME/torch/install/bin/th train.lua -input_h5 $WORK/rap/rap.h5 -input_json $WORK/rap/rap.json -rnn_size 2048 -num_layers 3 -dropout 0.25 -max_epochs 65536 -seq_length 256 -batch_size 128 -checkpoint_name $WORK/rap_checkpoints/rap > output.txt

Also make CUDA default.

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.