arderyp / scotuswebcites

United States Supreme Count web citation discovery, presentation, and validation
GNU General Public License v3.0
1 stars 0 forks source link

Create CitationExtractionValidationTest #50

Open arderyp opened 7 years ago

arderyp commented 7 years ago

Test citation extraction from local files to make sure that changes to citation extract code doesn't degrade quality, or break old use cases.

CitationExtractionValidationTest -get all opinions with citations -loop over citations -if scrape evaluation not 'bs' -if scraped = validated, put in neutral_coverage list -else put in improved_coverage field

-run new load_local_file() method -run extraction (make sure old/stored citation list is rebuilt) -make sure citation count is the same or greater -make sure all neutral_coverage citations were extracted -bonus points for improved_coverage citations