Skip to content

Yessense/map-script

Repository files navigation

map-script

Package for extracting scripts from English texts

Package Installation

Do the following steps:

  1. Install 'map-core' from the repository

    pip install git+https://github.com/cog-isa/map-core.git

  2. Install package

    pip install git+https://github.com/Yessense/map-script.git

Example usage

from mapscript.preprocessing.extract_texts_info import extract_texts_info
from mapscript.script import Script
from mapscript.visualization.visualizator import Visualizator

filepath = 'my_text.txt'
files = [filepath]
text_info = extract_texts_info(files)[0]

script = Script(text_info)

# script visualization
vis = Visualizator(script, save_to_file=False)
vis.show()

Visualization

Text

Example

Sentence 1

Sentence 1.

Sentence 1 - 2

Sentence 1 - 2.

Sentence 1 - 3

Sentence 1 - 3.

Sentence 1 - 4

Sentence 1 - 4.

Sentence 1 - 5

Sentence 1 - 5.

Sentence 1 - 6

Sentence 1 - 6.

About

Script extraction for VQA task

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published