Giter Site home page Giter Site logo

kp-storygeneration's Introduction

KP-StoryGeneration: Sherlock Holmes

Created by Amy Bryce & Theresa Pekarek-Rosin.
Github Repository: https://github.com/TPekarekRosin/KP-StoryGeneration

Setup Instructions

Code Prerequisites

Install python 3.6.

Set up python environment:

(1) Run $ ./bootstrap.sh.
(2) Start the virtual environment with $ source activate.
You should now be ready to run your code.
(3) Run $ deactivate when you are done.

Run the python code:

After you've started the virtual environment with $ source activate, you can run your python code (e.g. $ python helloworld.py).

Troubleshooting:
  • If you are given a permissions error when trying to run $ ./bootstrap.sh (e.g. -bash: ./bootstrap.sh: Permission denied), then run this command to add executable permissions: $ chmod a+x bootstrap.sh.

Inference: Using the Story Generator

(1) In the terminal, run $ python lstm_infer.py.
(2) You will then be prompted with:

How would you like to start your Sherlock Holmes story?
Please input up to 20 'words' (note that all punctuation will also be considered a 'word').
Type your words here and press <ENTER> when you are done:

(3) Please enter a seed sentence that is up to 20 words. For example: It was the best of times, it was the worst of times. If you enter a seed sentence that is longer than 20 words, the Story Generator will ignore the excess words.
(4) Once you hit <ENTER>, the Story Generator will output a unique Sherlock Holmes story, based on your starting sentence, onto your terminal screen. Please note that this current version of the Story Generator will produce the same story given the same seed sentence every time.
(5) The saved models used for the current version of the Story Generator can be found in the models/ directory.

kp-storygeneration's People

Contributors

amybryce avatar tpekarekrosin avatar

Stargazers

 avatar

Watchers

 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.