Skip to main content

Python statistics package for WeStAc, and the Swedish parliamentary proceedings

Project description

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.

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

westac_statistics-0.2.4.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

westac_statistics-0.2.4-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file westac_statistics-0.2.4.tar.gz.

File metadata

  • Download URL: westac_statistics-0.2.4.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.8.10 Linux/5.4.0-156-generic

File hashes

Hashes for westac_statistics-0.2.4.tar.gz
Algorithm Hash digest
SHA256 28f90c2706d51d3673d88fcc1db37f97d6d1b274923d7d93c361c0c1a7bec17b
MD5 cc816b765b585e46f632ceddc102d9c3
BLAKE2b-256 8661d3e3053e65825533db422f4b6519144548276e5544a5b7593c1874d2ff5f

See more details on using hashes here.

File details

Details for the file westac_statistics-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: westac_statistics-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.8.10 Linux/5.4.0-156-generic

File hashes

Hashes for westac_statistics-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5b3a4af146d2ec43b7b9c3ce93e5fe2793de9ce247bcc1b3259be54bbb3332b7
MD5 f26f66a1690dc5044c1c1c65886a9c3a
BLAKE2b-256 7784ebd4c19650a5a1e41a8c51c08d69b7d8d1a6514a69dbaf071877cb9103fc

See more details on using hashes here.

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