Update pre-existing opinion file with statutes, citations, short title.
Project description
corpus-writer
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
- Delete the statutes database since this may have been previously updated via their original yaml files
- 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)
Built Distribution
Close
Hashes for corpus_writer-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95c973362200f233c2f9b7263a3c1c77ea44adf2ecab5a185641bbfa166c7425 |
|
MD5 | b101250b7ed6e2434864b70762d59e5f |
|
BLAKE2b-256 | 47016a5cd7fd7ce18086e79b53eae613360b6ed91ad27246eb336e105062a328 |