Hi,
> On 21. Jul 2025, at 12:05, leo cd <
leo...@gmail.com> wrote:
>
> HTTP 500: {"messages":[{"level":"ERROR","message":"Internal server error: CasDoctor found 2 issues:\nCAS contains no CASMetadata. Cannot check concurrent access.
The missing CASMetadata thing should not be an error unless you are using INCEpTION 38.0-SNAPSHOT. In prior versions, this should just be warning.
I'm not sure how this ends up inside an error message. But it is still good you mention this because I should check why this occurs when uplodaing
annotated files via the remote API.
> [de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Sentence] [The metata…ux (Fig.]@[2722-2861] ends with whitespace\n"}]}
This part of the messages comes from the CAS Doctor which checks the uploaded files for consistency with INCEpTION's expectations.
One of these expectations is that annotations (including sentences and tokens) must not start or end with whitespace characters.
So what this error is telling you is that the sentence at offsets [2722-2861] starting with "The metata…" and ending with "…ux (Fig.]"
ends with a whitespace. Since we don't *see* a whitespace in "[The metata…ux (Fig.]" it must be a zero-width whitespace. In fact, if
you copy this text into a text editor and step through it with the cursor keys, you will note that when you stem from "." to "]" you have
to press the cursor-right key twice in order to move forward one step. That is because of the zero-width character there.
When you prepare your annotations externally, make sure they are trimmed properly removing any leading or trailing whitespace - even invisible.
Cheers,
-- Richard