allenai / pawls

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

Export the customize file #148

Open samshen-specright opened 2 years ago

samshen-specright commented 2 years ago

Hi, thank you for developing the tools, I would like to ask 2 questions:

  1. how to export the labeled file?
  2. Can I customize the label name?
MikeG112 commented 1 year ago

From trying out this repository today, I believe the answers here are:

  1. To export a labeled pdf, from the default layout of the repository in the main branch as it stands today, run something like:

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

    This is documented in the cli documentation here, assuming I've correctly deduced <labeling_folder> means the papers folder with default config, and <labeling_config> means the api configuration json ref'd above.

  2. You can customize the available label options that appear in the UI by altering this file.