Code Monkey home page Code Monkey logo

mica-text-script-parser's People

Contributors

anilkram avatar ncsandeepacharya avatar sabyasachee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mica-text-script-parser's Issues

Error when abridged flag is on

salvation_road.pdf

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.

Add comments to code

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.

Parser should also accept .txt scripts

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

Scene description detected as utterance

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

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.