allenai/pawls

Software that makes labeling PDFs easy.

What it solves

PAWLS addresses the difficulty of annotating PDF documents, particularly academic papers. PDFs are often static and lack machine-readable structure, making it hard to attach labels or notes to specific parts. PAWLS simplifies this by providing a web interface where annotations are linked to the text and structure of the PDF.

How it works

PAWLS uses a three-tier architecture: a user interface (UI), an API, and a proxy. The UI renders the PDF directly in the browser, while the API serves the PDF and handles saving and retrieving annotations. The proxy routes traffic between components. To enable precise annotation, PAWLS uses a preprocessing step that extracts token bounding boxes from each page, stored as a JSON file. The PAWLS CLI, which can use Grobid, performs this extraction. The system also includes authentication (users must log in) and authorization (only allowed users can access certain documents). It can be run locally with Docker Compose, which sets up all services.

Who it’s for

PAWLS is designed for researchers and engineers who need to annotate PDF documents, especially academic papers. It was developed for use with the Semantic Scholar corpus but works with any PDF collection. It is suitable for creating labeled datasets or extracting structured information from documents.

Highlights

  • Web-based interface for annotating PDFs directly in the browser.
  • Annotation positions are tied to token bounding boxes for precision.
  • Command-line tool for preprocessing PDFs to extract structure.
  • Built-in authentication and authorization controls.
  • Easy local deployment with Docker Compose.

Related

  • Project
  • Project
  • Project
  • Project