-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Hi!
We are facing an issue with evaluation in anonymization mode. Report Redaction works, but when we attempt to provide a zip file with annotations and calculate Report Redaction Metrics, we receive the following error and no other output:
Client Connected
Client Disconnected
Ignore labels: ['']
Metrics Page
Progress: (0, 1, True)
Start Redaction Job
No personal info list found for report, reconstruct from csv. report001.pdf$f263c23b
Traceback (most recent call last):
File "/app/webapp/report_redaction/routes.py", line 419, in generate_report_list
) = load_annotated_pdf(row["id"], orig_pdf_path, annotation_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/webapp/report_redaction/routes.py", line 985, in load_annotated_pdf
annoparser = InceptionAnnotationParser(annotation, cas)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/webapp/report_redaction/utils.py", line 39, in __init__
self.annotations = self.get_annotations()
^^^^^^^^^^^^^^^^^^^^^^
File "/app/webapp/report_redaction/utils.py", line 70, in get_annotations
for pdf_page in self.cas.select('org.dkpro.core.api.pdf.type.PdfPage'):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/cassis/cas.py", line 413, in select
t = type_ if isinstance(type_, Type) else self.typesystem.get_type(type_)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/cassis/typesystem.py", line 939, in get_type
raise TypeNotFoundError(f"Type with name [{type_name}] not found!")
cassis.typesystem.TypeNotFoundError: Type with name [org.dkpro.core.api.pdf.type.PdfPage] not found!
None
FAILED
Wait for client to connect
Wait for client to connect
Wait for client to connect
Client Connected
We created the annotations as described by you using INCEpTION and exported them in UIMA CAS JSON 0.4.0 format. We tried INCEpTION versions 33.0, 35.0 and 39.2, but always got the same error.
It would be very helpful if you could take a look at it.
Thank you and best regards
Darian
Metadata
Metadata
Assignees
Labels
No labels