Overlapping annotations AWS Comprehend

0

Hi , I am training a model in AWS comprehend using a csv file. It is giving me an error "Overlapping annotations (0, 4, 'Make') and (0, 11, 'Model') were found in the file PAS ID AWS Comprehend training data - Sheet1.csv, line 62" Can anyone help me in understanding the reason for this error and a possible fix to this issue?

질문됨 2년 전653회 조회
2개 답변
2

Comprehend doesn't support overlapping annotations, i.e. when a section of your text is annotated twice. Make sure the annotation is correct in the line that Comprehend found the error. If your annotation is correct and you have frequent overlaps in your document then creating two separate models is the suggested workaround.

AWS
Heiko
답변함 2년 전
  • I can't find any overlapping text in the TEXT column of the CSV. I can share the CSV in case it helps.

  • Note, this is not about overlapping text, but about overlapping annotations. From the error message it seems that you have annotated the same section twice, once with (0, 4, 'Make') and once with (0, 11, 'Model').

1

If you are using a custom entity file (as opposed to an annotation file), you cannot have an entity term be the same or a substring of another entity term. For example if you have one entity term that's "login" and another that's "user login" belonging to different entities, the auto-annotation will then overlap as it's trying to annotate the overlapping substring "login" to 2 different entities.

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠