Skip to main content

A python module to read and parse ALTO files

Project description

simple-alto-parser

This is a simple parser for ALTO XML files. It is designed to do two tasks separately:

  1. Extract the text from the ALTO XML file with the AltoTextParser class.
  2. Extract structured information from the text with different parsing methods.

Usage

from simple_alto_parser import AltoTextParser

alto_parser = AltoTextParser()
alto_parser.add_file('path/to/alto.xml')
alto_parser.parse_text()

result = alto_parser.get_alto_files()
regions = result[0].get_text_regions()
lines = regions[0].get_text_lines()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple-alto-parser-0.0.4.tar.gz (21.4 kB view hashes)

Uploaded Source

Built Distribution

simple_alto_parser-0.0.4-py3-none-any.whl (23.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page