Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/badicsalex/hun_law_py
Tools for parsing hungarian legal documents
https://github.com/badicsalex/hun_law_py
Last synced: 7 days ago
JSON representation
Tools for parsing hungarian legal documents
- Host: GitHub
- URL: https://github.com/badicsalex/hun_law_py
- Owner: badicsalex
- License: gpl-3.0
- Created: 2018-09-15T12:37:19.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-28T13:28:32.000Z (about 2 years ago)
- Last Synced: 2024-06-09T19:35:03.814Z (5 months ago)
- Language: Python
- Homepage:
- Size: 781 KB
- Stars: 16
- Watchers: 3
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
| **:warning: WARNING** |
| --- |
| This project has been deprecated in favor of the [Rust version](https://github.com/badicsalex/hun_law_rs), and is currently unmaintained. |# Hun-Law
A small project for parsing Hungarian Law. It does the following thigs:
* Parse PDF files into lines using pdfminer. It does so much more accurately
than other pdf2txt implementations.
* Parse "Magyar Közlöny" PDFs into individual Acts
* Separate Acts into structural elements (Articles, subpoints, etc.)
* Parse internal and external references in legal text
* Parse special phrases like amendments and repeals into easy-to-use objects
* Generate simple TXT, JSON and HTML version of the parsed documents## Usage
After cloning the repository, simply run `./generate_output.py`:
```
./generate_output.py txt 2013/31
./generate_output.py json 2018/123 --output-dir /tmp/acts_as_json
```Interesting Magyar Közlöny issues can be found in `act_to_mk_issue.csv`
To be able to actually use html output, you will have to copy or symlink the
style.css:
```
./generate_output.py html 2014/91 2014/92 2014/93 --output-dir /var/www/hun_law
cp style.css /var/www/hun_law
```## Things planned:
* Export into Akoma Ntoso format
* Export into epub or mobi format## Contribution
Feel free to open issues for feature reqests or found bugs. Merge Requests are more than welcome too, as long as all tests and static analysis passes.