usc-sail / mica-text-script-parser Goto Github PK
View Code? Open in Web Editor NEWCode to parse movie screenplays
Code to parse movie screenplays
I get the following error when I run the parse_script_noindent on the above pdf with the abridged flag on -
Traceback (most recent call last):
File "/proj/sbaruah/movie/mica-text-script-parser/parse_scripts_noindent.py", line 351, in <module>
parse(file_orig, save_dir, abr_flag, tag_flag)
File "/proj/sbaruah/movie/mica-text-script-parser/parse_scripts_noindent.py", line 342, in parse
dial_str = ' '.join(abridged_script[i + 1].split('D:')[1].split())
IndexError: list index out of range
Can you please look into it? It seems the program expects D tag to always follow a C tag, which does not happen at some point for the linked pdf.
None of the code is commented. I am trying to run this parser on a standalone pdf - and there are no instructions on where to begin with. Can you please add comments and give a few use cases, such as fetching from a webpage, or running on a pdf, etc.
Scripts can be .txt files.
Clients might parse the pdf on their side and give text files.
Please allow for the input of .txt files in parse_scripts_noindent.py
In some scripts they have scene number before or after the scene boundary. And causing the output to be parsed as an utterance.
like this --
" 141 141 => All the denizens of Warm Springs are crowded around the radio."
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.