Coder Social home page Coder Social logo

screenplayreader's Introduction

Screenplay Reader

A tool for reading files in screenplay formats and parsing their structure.

Basic Idea

Upload a screenplay in .txt, .pdf, .fdx, and so on and get it parsed into the different recognizable parts of a screenplay. Get the output through the REST framework, or alternative future methods.

What does it do right now?

Input

Takes plaintext of a screenplay, where newlines separate distinct sections (ie. location, character, action, dialogue)

Output

Outputs a csv of one scene per row, marking characters present.

Scene Number Location Character #1 Character #2 Character #3 Character #4
1 Crime Scene X
2 Police Station X X
3 Hideout X

How To Run

Requirements

  • docker
  • docker-machine

Setup

  1. Navigate into the base folder.

  2. Run docker-compose up

  3. ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ

  4. You'll need to run migrations on the database to get it caught up.

    $> sudo docker exec -it screenplayreader_web_1 /bin/bash
    timekeeper_web_1$> python manage.py makemigrations
    timekeeper_web_1$> python manage.py migrate
    
  5. Open your browser to localhost.

Usage

Importing Content

  1. Visit the Importer app API root.
  2. Send a POST request of your content to the ImportedContent endpoint.

Parsing Content

  1. Visit the Importer app API root.
  2. Create a new ParseOperation and run the operation.

Interpreting Content

  1. Visit the Interpreter app API root.
  2. Create a new InterpretOperation and run the operation.

Exporting Content

  1. Visit the Exporter app API root.
  2. Navigate to a Screenplay created by the Interpreter.
  3. Download Basics CSV or Character Breakout CSV.

Structure

Django-based site with REST API framework

  • screenplayreader - Django project
    • importer - Django application
    • interpreter - Django application
    • exporter - Django application

Additional Resources

screenplayreader's People

Contributors

dependabot[bot] avatar maaack avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.