Skip to main content

Parse Polish Sejm transcripts to machine readable corpus

Project description

# hipisejm

Process textual data from Polish Sejm.

Does the same thing as is available on https://kdp.nlp.ipipan.waw.pl/query_corpus/ but maybe someone will find those scripts useful.

Configuration

Create virtualenv:

source enter.sh

Then every time you start working you can simply type it again.

To add virtualenv from enter.sh to jupyter (one time):

python -m ipykernel install –user –name=hipisejm

Testing

To run all tests type (use -s for debug show of prints ;) ):

python -m pytest tests

To run specific test put path to the test file:

python -m pytest tests/t_stenparser/test_sejm_parser.py

Format

We use XML-alike format to store parsed data. Each day is stored in the separate file (so in general one PDF transcription will create one XML file).

You will find XSD schema for the corpus output file in resources/hipisejm-transcript-schema.xsd

You can find example of the parsed file in resources/hipisejm-transcript-example.xml

Hint, to validate your XML file:

xmllint –schema resources/hipisejm-transcript-schema.xsd resources/hipisejm-transcript-example.xml –noout

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

hipisejm-0.1.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file hipisejm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hipisejm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for hipisejm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a854e3fbb7e68d5b42f4fe95e53c508aa487257d64ebf0e8972adee2c792b1e6
MD5 f219a9f7cabda755aa4a50e29529b5f7
BLAKE2b-256 388e5515bcdd6a677b69a01879c7386779bd9fbbaf2c36bc9ef5853091e3e501

See more details on using hashes here.

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