inception-project / inception

INCEpTION provides a semantic annotation platform offering intelligent annotation assistance and knowledge management.
https://inception-project.github.io
Apache License 2.0
589 stars 149 forks source link

Error when curating sentence-level named entity linking annotations in INCEpTION #5093

Open kapllan opened 3 hours ago

kapllan commented 3 hours ago

Project: Named Entity Linking for PDF Sentence-Level Annotations

Description: We have created a project for named entity linking in INCEpTION where we are labeling entire sentences in PDF documents and linking them to instances in our custom knowledge base. The annotation process works perfectly. However, when we try to curate the annotations, we encounter the following error message:

"Unable to render annotatations"

(Note: This seems to be a typo, it should likely read "annotations".)

When checking the logs, the following error appears:

End position of range [...] is not part of any visible row. In a sentence-based editor, this is most likely caused by annotations outside sentences.

Steps to Reproduce:

  1. Create a project for named entity linking.
  2. Define a custom knowledge base and use a set of four labels for spans.
  3. Annotate entire sentences in PDF documents with entity links from the knowledge base.
  4. Attempt to curate the annotations.
  5. Observe the error message and log details.

Workaround:

Expected Behavior: The curator should be able to load and manage the annotated sentences and their corresponding links without any issues.

Actual Behavior: Curating results in an error message: "Unable to render annotatations". The logs suggest the issue might be related to annotations being outside of visible sentence boundaries.

Log Output (Error):

End position of range [...] is not part of any visible row. In a sentence-based editor, this is most likely caused by annotations outside sentences.

Layer Settings:

Possible Cause: We suspect this might be happening because we are performing entity linking on a sentence level, and the error is related to how annotations are rendered in sentence-based views. However, we have set the layer to character-level granularity and allowed overlapping annotations.

Request: Could you please explain why this error occurs during curation? Is it related to the sentence-level entity linking in a sentence-based editor? How can we resolve this issue?


Additional Information:

Thank you for your assistance in resolving this issue!

reckart commented 3 hours ago

Would you be able to provide a small project export containing an affected PDF that I could use to reproduce the problem?

kapllan commented 2 hours ago

sample_project_inception_bug.zip Sure, attached you can find the sample project. Note that the annotations do not make any sense. They have been done just so that you can reproduce the error.