Skip to content

Pulls deaths per month from country reports by Human Rights Watch and Amnesty International

Notifications You must be signed in to change notification settings

bensfisher/atrocities-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atrocities-parser

The file spacy_parser.py contains the function 'atrocities_parser', which extracts the date and number of deaths from sentences in Amnesty International reports that mention attacks on civilians. It takes as its input the filepath of the directory which contains the AI reports that you want to parse and returns the information in a list formate (which can then be converted to a pandas dataframe or something similar).

Example

from spacy_parser import atrocities_parser

dir = '/path/to/amnestyreports'

atrocities_parser(dir)

About

Pulls deaths per month from country reports by Human Rights Watch and Amnesty International

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages