Package for extracting scripts from English texts
Do the following steps:
- Install 'map-core' from the repository
pip install git+https://github.com/cog-isa/map-core.git
- Install package
pip install git+https://github.com/Yessense/map-script.git
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()