Skip to main content

Update pre-existing opinion file with statutes, citations, short title.

Project description

corpus-writer

Github CI

Update pre-existing opinion file (in markdown front-matter) with statutes, citations, short title.

The decisions / statutes directories needs to be configured via an .env file, see just dumpenv for an

Steps

  1. Delete the statutes database since this may have been previously updated via their original yaml files
  2. The lack of a statutes database will cause a rebuild of the same

Run the following python command:

from corpus_writer import get_opinion_files_by_year, update_markdown_opinion_file

for i in range(1900, 1946):
    for file in get_opinion_files_by_year(year=i):
        update_markdown_opinion_file(file=file)

Note that for cases like am/97-9-282-rtc/1998-04-22/main-123.md where it takes too long to determine citations (likely a recursive regex error), a timer of 5 seconds is used by update_markdown_opinion_file.

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

corpus_writer-0.0.5.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

corpus_writer-0.0.5-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

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