original-label-> information
This commit is contained in:
1 parent
5009831c7c
commit
96c00fa941
5 files changed
+81
No files matched your search
@@ -10,6 +10,7 @@ from PIL import Image
|
||||
from .json_io import read_json
|
||||
from .feedback_boxes import valid_feedback_box
|
||||
from .workspace import EvaluationWorkspace
|
||||
from .answer_origins import origins_for
|
||||
|
||||
AnnotationData = dict[str, dict[str, dict[str, Any]]]
|
||||
RefaireList = list[list[Any]]
|
||||
@@ -208,4 +209,9 @@ def load_annotation_data(
|
||||
data = {copy_id: data[copy_id]} if copy_id in data else {}
|
||||
if not data:
|
||||
warnings.append(f"Copy id {copy_id} was not found in correction.json")
|
||||
for student_id, answers in data.items():
|
||||
for label, answer in answers.items():
|
||||
answer["result"]["content_origins"] = origins_for(
|
||||
workspace.root, student_id, label, answer["pdf_path"]
|
||||
)
|
||||
return AnnotationLoadResult(data, warnings)
|
||||
Reference in new issue
Block a user