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 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.
Installation
GermaParlPy is available on PyPi:
pip install germaparlpy
Or install from source:
git clone git@github.com:Nolram567/GermaParlPy.git
cd germaparlpy
pip install .
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.
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). See also their R-Library PolMineR in the context of the PolMine-Project, which served as an inspiration for this library.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file germaparlpy-1.0.0.tar.gz.
File metadata
- Download URL: germaparlpy-1.0.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5ec25d092dfc5e25c8efce4b715623a448af673b8ca5685c51888ec2655e464
|
|
| MD5 |
373da1f86d101f906c276e9486899095
|
|
| BLAKE2b-256 |
2f1765548ac0dd25cb73ffde287dfc84c1bd71894c5427e8d6595dc633aeef7c
|
File details
Details for the file germaparlpy-1.0.0-py3-none-any.whl.
File metadata
- Download URL: germaparlpy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eabc684ac873e8216d6a230d7ad55ac97cecf8fd8290c59df57bd54df3ec276c
|
|
| MD5 |
cffa900f4f5cea5f3921f6bb9ddfd779
|
|
| BLAKE2b-256 |
9773cded437684a08980a41fc6a498d665f770feb609b1e62fde2a12ae371c8b
|