AEMS helps university instructors mark STEM exams, homeworks, and lab reports faster. Built for handwritten work, with full support for typed and printed submissions. Upload the rubric, review draft m
翻译准备中
教育JavaScript · PythonGitHub @aems-app在线运营者未确认
试用过了吗? 点一下就好,无需登录。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Schema-driven PDF annotation engine for AEMS — verdict markers, page-anchored highlights, and LLM-output payload contract.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Schema-driven PDF annotation engine for AEMS — the Assisted Exam Marking System.
A small, focused library that takes a structured annotation payload (LLM output, rubric verdicts, page-anchored highlights) and draws it onto a PDF using PyMuPDF. It powers the annotated marker PDFs that AEMS returns to instructors.
Key surfaces:
PDFAnnotation, BBox, AnnotationBatch — typed models for the annotation payload (Pydantic v2).payload_to_annotations(), feedback_items_to_annotations() — convert AEMS LLM output (the "annotation contract") into typed annotation objects.PDFAnnotator, apply_annotations(), apply_annotation_batch() — open a PDF, draw the annotations, save.pip install aems-pdf-annotator
Or from source:
pip install git+https://github.com/aems-app/aems-pdf-annotator
Requires Python 3.10+.
from aems_pdf_annotator import (
PDFAnnotation, BBox, AnnotationColor, AnnotationType,
apply_annotations,
)
annotations = [
PDFAnnotation(
page=1,
bbox=BBox(x=0.10, y=0.20, width=0.40, height=0.04),
annotation_type=AnnotationType.HIGHLIGHT,
color=AnnotationColor.GREEN,
content="Correct identification of the boundary condition.",
is_verdict=False,
),
PDFAnnotation(
page=1,
bbox=BBox(x=0.80, y=0.20, width=0.03, height=0.03),
annotation_type=AnnotationType.STAR,
color=AnnotationColor.GREEN,
content="PASS",
is_verdict=True,
),
]
apply_annotations(
input_pdf_path="input.pdf",
output_pdf_path="annotated.pdf",
annotations=annotations,
)
Coordinates are normalised (0.0–1.0) with (0, 0) at the top-left of the page; the renderer converts to PDF bottom-left internally.
The LLM-output payload format follows a versioned contract. Current values are exported as CURRENT_CONTRACT_VERSION and CURRENT_COORDINATE_SPACE. payload_to_annotations() validates the incoming payload's contract version against SUPPORTED_CONTRACT_VERSIONS and raises ContractValidationError on a mismatch.
AGPL-3.0-or-later. See LICENSE.
This package wraps PyMuPDF, which is itself licensed under AGPL-3.0. Any program that imports aems_pdf_annotator in-process inherits the AGPL combined-work obligations. If that does not fit your distribution model, commercial PyMuPDF licensing is available from Artifex.