Skip to main content

Read, create, and modify Parla-Clarin XML files

Project description

Pyparlaclarin

This module includes functionality for reading, creating, and modifying Parla-Clarin XML files.

For instance, you can loop over all paragraphs in a Parla-Clarin file with a simple function:

from pyparlaclarin.read import paragraph_iterator

for paragraph in paragraph_iterator(root):
	print(paragraph)

or get all speeches by a speaker

from pyparlaclarin.read import speeches_with_name

for speech in speeches_with_name(root, name="barack_obama_1961"):
	print(speech)

Further documentation is available on GitHub pages.

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

pyparlaclarin-0.8.1.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

pyparlaclarin-0.8.1-py3-none-any.whl (6.6 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