Giter Site home page Giter Site logo

lmf22 / rnn-tv-script-generation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from felipelodur/rnn-tv-script-generation

0.0 1.0 0.0 162 KB

Applying Recurrent Neural Network to generate TV scripts. Developed as coursework in the "Deep Learning Fundamentals" Nanodegree @ Udacity

Jupyter Notebook 71.77% Python 28.23%

rnn-tv-script-generation's Introduction

RNN-TV-Script-Generation

Applyting Recurrent Neural Network to generate TV scripts. Developed as coursework in the "Deep Learning Fundamentals" Nanodegree @ Udacity. This project passed all specifications as shown in the project information section

Project Information

  • The function create_lookup_tables create two dictionaries: vocab_to_int and int_to_vocab
  • The function token_lookup returns a dict that can correctly tokenizes the provided symbols.
  • Implemented the get_inputs function to create TF Placeholders for the Neural Network with Input, Target and Learning Rate placeholders.
  • Enough epochs to get near a minimum in the training loss, no real upper limit on this. Just need to make sure the training loss is low and not improving much with more training.
  • Batch size is large enough to train efficiently, but small enough to fit the data in memory. No real “best” value here, depends on GPU memory usually.
  • Size of the RNN cells (number of units in the hidden layers) is large enough to fit the data well. Again, no real “best” value.
  • The sequence length (seq_length) here should be about the size of the length of sentences you want to generate. Should match the structure of the data.

Results

The TV Script generated and have similar characteristics to the original tv scripts, the results are pretty fun! The following TV script was generated:

homer_simpson:(beligerent) oh, you'd like that wouldn't you, ya...

carl_carlson: hey, i'm worried.

homer_simpson: i've had just about enough of you.

moe_szyslak: so we, uh... homer's been gone a drunk.

moe_szyslak:(covering nervous laughing) i got hooked on this stuff in the service.

homer_simpson:(quietly) hi, moe. this is why... that's all right.

moe_szyslak:(sighs) what's the point?... same ol' stinkin' world... ah, i'm gonna be sick tonight.

barney_gumble: hey moe, you wanna smell my flower?

moe_szyslak:(genuinely enthused) do i?!

moe_szyslak:(laughs) usually people that tease me get thrown out on their ass. but, uh, your sayin' it made me feel good. jeez, i can't less of my blood and sweat are in this drink.

moe_szyslak: anyway, you got it, moe.(shuts off) so goodbye...

chief_wiggum:(singing) so you better make that call to the plow king.

homer_simpson: how could you, barney? after all you,(tearfully) you get that car?

moe_szyslak: oh, what? i suppose you've seen a bigger star?

homer_simpson:(coy) i might have.

lenny_leonard: come on, there's sexy bald like...

moe_szyslak:(while poking, friendly) so, hey, did you see the game last night?

...

seymour_skinner: homer, still not private?

moe_szyslak: sure, we're

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.