Skip to main content

The GermaParlPy Python package provides functionality to deserialize, serialize, manage, and query the GermaParlTEI corpus and derived corpora.

Project description

GermaParlPy

The GermaParlPy Python package provides functionality to deserialize, serialize, manage, and query the GermaParlTEI[^1] corpus and derived corpora.

The GermaParlTEI corpus comprises the plenary protocols of the German Bundestag (parliament), encoded in XML according to the TEI standard. The current version covers the first 19 legislative periods, encompassing transcribed speeches from the Bundestag's constituent session on 7 September 1949 to the final sitting of the Angela Merkel era in 2021. This makes it a valuable resource for research in various scientific disciplines.

For detailed information on the library, visit the official website.

Use Cases

Potential use cases range from the examination of research questions in political science, history or linguistics to the compilation of training data sets for AI.

In addition, this library makes it possible to access the GermaParl corpus in Python and apply powerful NLP libraries such as spacy or gensim to it. Previously, the corpus could only be accessed using the PolMineR package in the R programming language.

Installation

GermaParlPy is available on PyPi:

pip install germaparlpy

API Reference

Click here for the full API Reference.

XML Structure

Click here to learn more about the XML Structure of the underlying corpus GermaParlTEI[^1].

Tutorials

I have prepared three example scripts that showcase the utilisation and potential use cases of GermaParlPy. You can find the scripts in the /example directory or here.

Contributing

Contributions and feedback are welcome! Feel free to write an issue or open a pull request.

License

The code is licensed under the MIT License.

The GermaParl corpus, which is not part of this repository, is licensed under a CLARIN PUB+BY+NC+SA license.

Credits

Developed by Marlon-Benedikt George.

The underlying data set, the GermaParl corpus, was compiled and released by Blätte & Leonhardt (2024)[^1]. See also their R-Library PolMineR in the context of the PolMine-Project, which served as an inspiration for this library.

[^1]: Blaette, A.and C. Leonhardt. Germaparl corpus of plenary protocols. v2.2.0-rc1, Zenodo, 22 July 2024, doi:10.5281/zenodo.12795193

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

germaparlpy-1.0.4.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

germaparlpy-1.0.4-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file germaparlpy-1.0.4.tar.gz.

File metadata

  • Download URL: germaparlpy-1.0.4.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for germaparlpy-1.0.4.tar.gz
Algorithm Hash digest
SHA256 a66e3f2da325bd1f26ab53605b7039c821ef4184b6b558617143758555490a04
MD5 bd5f65efb994e92f5288495c6387b08b
BLAKE2b-256 4b3d23b23d1192320569531ac10be4f57321c28fcb3938ac5efc75bab1fceb15

See more details on using hashes here.

Provenance

The following attestation bundles were made for germaparlpy-1.0.4.tar.gz:

Publisher: publish_pypi.yml on Nolram567/GermaParlPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file germaparlpy-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: germaparlpy-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for germaparlpy-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 59463fdb84917f7278ac8a58af64918bbd268efc203636acdfaeed80c6ee66fa
MD5 5326d8f88263bb0aebe87ee042fef659
BLAKE2b-256 652e4c59c98b6e913e7c871058240366d27a651b9ccee9a80ec93a91262e466a

See more details on using hashes here.

Provenance

The following attestation bundles were made for germaparlpy-1.0.4-py3-none-any.whl:

Publisher: publish_pypi.yml on Nolram567/GermaParlPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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