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
Release history Release notifications | RSS feed
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.4.2.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for pyparlaclarin-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44b36c78f534cb32b061f9642598a9f0c14d1f08a638aa7f20fdf9b4cfb48f46 |
|
MD5 | 419e84031d65dd6774a241f76d732a6d |
|
BLAKE2b-256 | 775c0d534ceafc83cddb56157bcae4b7d61b46eed52a69a53ca7d5e0c1ddae24 |