Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 978 Bytes

README.md

File metadata and controls

29 lines (17 loc) · 978 Bytes

Schedario napoletano (parser)

This repository contains code to extract the definitions from the two PDF files of the Schedario napoletano written by Giuseppe Giacco.

This extracts 23k unique definitions, of which 5k are aliases.

Run

Download both parts of the Schedario as 1.pdf and 2.pdf. Then run:

poetry run python extract.py [<path>].

The output JSON can then be used to feed the website. If <path> is not provided, it defaults to definitions.json.

Advanced usage

The script supports additional options:

poetry run python extract.py [--dry-run] [--diff]
  • --dry-run: don't actually write the definitions in a file
  • --diff: print some diff between the existing definitions (if any) and the new ones. This is useful to see changes when editing the code logic.