EuroParl-Amendment-Extract
This is a simple script to convert the amendments from the EP to JSON. It follow the format define in that dataset https://zenodo.org/record/4709248#.YXesJS8itqs for the article War Of Word https://github.com/indy-lab/war-of-words
prerequisites
Build the MEPs dataset with the script
python3 meps.py
Debugger
To run the debugger we simply need to run 'streamlit run diff_visualizer.py', it will run the am labeler on the ep8 dataset and visualize the first error that it comes across.
Sequence matcher update
In diff.py there is now a extract_opcodes and extract_opcodes_v2. The v2 takes into account to merge consecutive 'replace' operations as well as 'delete' operations followed by a replace. We also display now at the end an accuracy metric that sort of roughly sketches the am labeler's performance. The accuracy is calculated by penalizing the algorithm for each edit that it gets wrong relative to the size / length of text that was attributed to the edit in question. With this evaluation metric we observed a high accuracy (99+ %) on the ep8 dataset.
Usage
from ep_amendment_extract import extract_amendments
extract_amendments('file.docx')
Metadata
Release files for europarl-amendment-extract 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| europarl_amendment_extract-1.1.1.tar.gz | 10.2 kB | Without provenance | Details for europarl_amendment_extract-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| europarl_amendment_extract-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for europarl_amendment_extract-1.1.1-py3-none-any.whl |
Total release size: 21.2 kB
Release files / europarl_amendment_extract-1.1.1.tar.gz
| Download URL | europarl_amendment_extract-1.1.1.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82397bad3b2660745326b141eae972e69189a2a47d3644f51a3b23857eb11e61
|
|
BLAKE2b-256 checksum How to use checksums |
f8deb432cace178d5ddc69c3549a4efbbcc498e72fe1919030226dcb5b7b49a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / europarl_amendment_extract-1.1.1-py3-none-any.whl
| Download URL | europarl_amendment_extract-1.1.1-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea4c65d09869916c716aa14453404b553c947571b0a33750c79c471b26a5a42f
|
|
BLAKE2b-256 checksum How to use checksums |
48d3d7274075f2183c05646be8f743daa34c8049548e6c89ad47431ca620cd9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for europarl-amendment-extract 1.1.1
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.