A screenplay bot
Meet DAVE, the screenwriting bot. DAVE generates formatted screenplays from other screenplays.
pip install davebot
DAVE.nlp.Stanley uses all the modules below (except web scraping) to generate formatted screenplays (PDF and plaintext).
from DAVE.nlp.Stanley import Stanley characters = ['HAL', 'DAVE', 'Stanley Kubrick', 'Discovery One', 'Arthur C. Clarke', 'The Sentinel'] source = ['2001-A-Space-Odyssey.txt', '2012.txt'] director = Stanley(source, characters, destination='output', title='2013', author='DAVE') director.direct(length=100)
DAVE will create two files in the
DAVE.scraper.DiscoveryOne scrapes from IMSDB using BeautifulSoup
from DAVE.scraper import DiscoveryOne, Sentinel DiscoveryOne.crawl(path, directory='.', pattern=GENRE):
DAVE.scraper.Sentinel and parses screenplays into subsections: headings, transitions, actions, parentheticals, and dialogue, to be further prepared into Markov models.
Sentinel.parse(*sources, destination='.', write=True)
Or, parse recursively using
Sentinel.parse_directory(source='.', destination='parsed_categories', genre='All')`
Serialize markov models
DAVE.nlp.HAL generates Markov chains from the parsed categories made by
DAVE.scraper.Sentinel and serializes the models into JSON.
To create the Markov models:
from DAVE.nlp.HAL import HAL HAL.generate_models(source='parsed_categories', destination='.')
A Space Odyssey
Inspiration from the name D.A.V.E. came from Stanley Kubrick's masterpiece film 2001: A Space Odyssey. The names of this package's modules all reflect characters, creators, texts, and important people involved in A Space Odyssey.
The original inspiration for this project comes from a short science fiction film: Sunspring.
Description (from Ars Technica):
In the wake of Google's AI Go victory, filmmaker Oscar Sharp turned to his technologist collaborator Ross Goodwin to build a machine that could write screenplays. They created "Jetson" and fueled him with hundreds of sci-fi TV and movie scripts. Building a team including Thomas Middleditch, star of HBO's Silicon Valley, they gave themselves 48 hours to shoot and edit whatever Jetson decided to write.
Click the image above to see the full video.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size davebot-1.0.1-py3-none-any.whl (23.9 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size davebot-1.0.1.tar.gz (8.3 kB)||File type Source||Python version None||Upload date||Hashes View hashes|