Skip to main content

Package for parsing the Swedish parlimentary proceedings

The proceedings can be found here

This can create a Pandas dataframe containing all speeches found, along with who spoke and when.

The usual way to use this method is in combination with Jupyter notebooks that are not included as part of this package.

Docker-compose file

The github repository includes a docker-compose file along with necessary files for execution.

This includes:

  • Notebooks in .py format (must be converted using jupytext)
  • Stop words for the notebooks
  • docker-compose files for execution
  • Scripts for converting between notebooks and py files

Docker execution

Note that the notebooks expects to have access to the riksdagen-corpus files, so they must also be added by the user in the directory riksdagen-corpus in the root of this repository.

To then start the file, simply go to the docker directory and execute the command docker-compose up -d to start the container. The default listening port is 9006 instead of the default 8888, so if the notebook is started on the local machine this link should work

During startup, the notebooks in .py format will be automatically converted to jupyter notebook format, but no files will be overwritten. If the user wishes to redo the conversion, delete the appropriate notebook files and run the script again manually or restart the container.

Similarly, if changes should be converted back to .py format from notebook format, use the script notebook_to_py.sh inside the docker container.

Metadata

Release files for westac-statistics 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for westac-statistics 0.4.0
File Size Uploaded Provenance Actions
westac_statistics-0.4.0.tar.gz 21.6 kB Without provenance Details for westac_statistics-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for westac-statistics 0.4.0
File Interpreter ABI Platform Actions
westac_statistics-0.4.0-py3-none-any.whl Python 3 none any Details for westac_statistics-0.4.0-py3-none-any.whl

Total release size: 45.3 kB

Release files / westac_statistics-0.4.0.tar.gz

Download URL westac_statistics-0.4.0.tar.gz
Size 21.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c14d56434e1e220529ccc5ba05e356dc97b2450a957d38264343c4ed7863c8a5
BLAKE2b-256 checksum
How to use checksums
200b121fa09472de95c0f03e985245d859e500b24cb448ed2110f282f02fb432
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.8.10 Linux/5.4.0-164-generic

Release files / westac_statistics-0.4.0-py3-none-any.whl

Download URL westac_statistics-0.4.0-py3-none-any.whl
Size 23.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2cc434efa567080c656451506b9b0cf0f0d6fbd5e843c52c1c7e8160bec695c
BLAKE2b-256 checksum
How to use checksums
a8c03a6745897890e9329647159b4af18c236e7fd3b7ae20283445836677e92c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.8.10 Linux/5.4.0-164-generic

Security for westac-statistics 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page