Skip to main content

ESG-CID-Plus: A Stratified Benchmark for Disclosure Content Index Table Extraction from Corporate Sustainability Reports

Project description

esg-cid-plus

Supporting code for the EMNLP 2026 paper: ESG-CID-Plus: A Stratified Benchmark for Disclosure Content Index Table Extraction from Corporate Sustainability Reports

Install

uv pip install -e .

Modules

Module Purpose
cid Data models (CIRow, ContentIndex, FrameworkSpec) and normalization helpers
data HuggingFace loaders — load_split, load_framework, resolve_pdf_path
pdf_toolkit PDFSession — text extraction, lunr search, camelot tables, page labels
pdf_toolkit_ocr OCRPDFSession — extends above with image rendering, rapidocr, img2table
extract Rule-based pipeline: S1 detect → S2/S3 draft → S4 resolve → ContentIndex
eval Tuple-level P/R/F1 — evaluate_predictions, format_feedback

Quickstart

from esg_cid_plus.data import load_split, load_framework, resolve_pdf_path
from esg_cid_plus.extract import extract
from esg_cid_plus.eval import evaluate_predictions

pdf_rows, cid_rows = load_split("train_small")
fw = load_framework("gri_2021")

pdf_path = resolve_pdf_path(pdf_rows[0])
ci = extract(pdf_path, fw)

gt = [r for r in cid_rows if r["report_name"] == pdf_rows[0]["report_name"]]
pred = [{"report_name": ci.report_name, "standard_id": r.standard_id,
         "page_location_indices": r.page_location_indices} for r in ci.rows]

_, overall = evaluate_predictions(gt, pred)
print(overall)

Tests

uv run pytest              # fast (unit)
uv run pytest -m slow      # integration — requires HuggingFace access

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

esg_cid_plus-0.1.0.tar.gz (31.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

esg_cid_plus-0.1.0-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file esg_cid_plus-0.1.0.tar.gz.

File metadata

  • Download URL: esg_cid_plus-0.1.0.tar.gz
  • Upload date:
  • Size: 31.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for esg_cid_plus-0.1.0.tar.gz
Algorithm Hash digest
SHA256 333e73da20ffdbb53d7c2b41f5830eb41514f9db84d22aa541141d773ad9484e
MD5 05ba53c737eb8cfa44ea1388f08ff424
BLAKE2b-256 58d35616ffddf6d0f4b1b1400c72af1b3c65cfac846dd80d039dd8181fa0991a

See more details on using hashes here.

File details

Details for the file esg_cid_plus-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for esg_cid_plus-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b88bd84df6a9aa884370b505afc9f51601b00122a034a12d8aa14e31f05be706
MD5 6d192c05b9485cad649d2641d705d540
BLAKE2b-256 d33d9b628dc8f7a78142447a26d0a77f63ed4209560707bef11d7df2bd52d9e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page