allenai / pawls

Software that makes labeling PDFs easy.
https://pawls.apps.allenai.org
Apache License 2.0
380 stars 74 forks source link

PAWLS Export Function #198

Open sanjanachin opened 1 year ago

sanjanachin commented 1 year ago

Hi! I'm trying to use PAWLS to collect PDF annotations, and in the documentation, I see that I'm supposed to use the command pawls export <labeling_folder> <labeling_config> <output_path> <format> to export an annotated PDF. I'm trying to understand what , , and \ are supposed to be?

Thank you!

JSv4 commented 1 year ago

What format are you looking for @sanjanachin ? I love PAWLS, but I needed a much more robust and modular backend. I built OpenContracts using some of the PAWLS code on the frontend. It's definitely still a work in progress, but you can annotate and export docs in multiple formats.

MikeG112 commented 11 months ago

To export pdf annotations, from the default layout of the repository in the main branch as it stands today, I was able to run:

  pawls export skiff_files/apps/pawls/papers/ api/config/configuration.json coco_labels.json coco

So consistency with the cli documentation here seems to suggest that, with the default config, the <labeling_folder> means the papers folder, <labeling_config> means the api configuration json ref'd above, and <format> means either coco or token.