freelawproject / courtlistener

A fully-searchable and accessible archive of court data including growing repositories of opinions, oral arguments, judges, judicial financial records, and federal filings.
https://www.courtlistener.com
Other
550 stars 151 forks source link

Command to update case names #4619

Closed quevon24 closed 3 weeks ago

quevon24 commented 4 weeks ago

This is the command to update the long resource case names

To run it: manage.py update_casenames_csv --csv /opt/courtlistener/cl/assets/media/casenames_to_update.csv

This is the first round to correct the names. For this specific case I focused on processing the names where there are two matches, since this is the simplest, since we can identify them by splitting the name by "v." and it will only return two results.

The next step is to improve the names where we have more than two parties, this is the most complex since we do not have any label or similar that tells us where one ends and the next begins.

You can take a look at the file here:

https://drive.google.com/file/d/1V14_4zjx5zGjqAJepVT8kSxiKjYj3yYs/view?usp=sharing

The csv has this columns: