-
Notifications
You must be signed in to change notification settings - Fork 8
Judicialis, Postprocessing and waiting in downloads #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
galvusdamor
wants to merge
17
commits into
niklaswais:master
Choose a base branch
from
galvusdamor:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gesp can now prostprocess the court decisions it has downloaded. Postprocession includes the extraction of meta-data and the inference of an ECLI (even if none was given) and the extraction of the plain text of the decision
Der Textkörper von Urteilen aus BW wurde nicht korrekt extrahiert
Some providers employ measures detecting too rapid access of their websites, which leads to IP bans. A small delay between requests might help to remedy this problem.
For (most) of the providers, not all of the plain text of the decisions was correctly extracted. This mainly pertains to underlines, bold, italics, or otherwise marked text. This sometimes caused whole chunks of decisions to be missing from the post-processed plain text format.
Owner
|
Thank you! I have manually added the "-w" feature and your bugfixes (with some minor changes) to the "feature-ECLI" branch and subsequently made it the "master" branch. I still think we should keep judicialis out of the master branch though, since it is not an official source. I will create an extra branch for it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've added a module to download older decisions from the website judicialis.
The current version of geps "only" downloads the decisions as html/xml/pdf files. This fork contains code to post-process these raw files into a uniform and machine readable format.
If post-processing is activated (using "-P"), gesp will create a new directory "postprocessed" in which it will sort all court decisions by state and then by court. The files are named by the ECLI (European Case Law Identifier) of that decision. If an ECLI is provided that ECLI is used, otherwise the gesp will re-infert the correct ECLI.
Each post-processed file begins with a header containing basic information about the decision, followed by a separator-line and then the plain-text body of the decision.
Lastly, there is now the command line option "-w" which forces gesp to pause after each download from a decision provider. This allows us not to overstrain the computational resources of the providers.