Hi,
I'm currently stuck with the following problem:
I used the remote API to create a new project and imported a document. Now I want to add pre-annotations in the UIMA CAS JSON format looking like this (created with dkpro in Python):
{
"%TYPES": {
"webanno.custom.Annotationsrichtlinie_v0_100_1": {
"%NAME": "webanno.custom.Annotationsrichtlinie_v0_100_1",
"%SUPER_TYPE": "uima.tcas.Annotation",
"%DESCRIPTION": "Custom annotation for 'Text'",
"value": {
"%NAME": "value",
"%RANGE": "uima.cas.String"
}
}
},
"%FEATURE_STRUCTURES": [
{
"%ID": 1,
"%TYPE": "uima.cas.Sofa",
"sofaNum": 1,
"sofaID": "_InitialView",
"mimeType": "text/plain",
"sofaString": "Achacius Berolczhaimer [...]"
},
{
"%ID": 2,
"%TYPE": "webanno.custom.Annotationsrichtlinie_v0_100_1",
"value": "Person",
"begin": 0,
"end": 22,
"@sofa": 1
},
...
],
"%VIEWS": {
"_InitialView": {
"%SOFA": 1,
"%MEMBERS": [
2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
]
}
}
}
But I always get the following 500 error:
Internal server error: Type not found in type system: webanno.custom.Annotationsrichtlinie_v0_100_1\n
at the position of the first annotation span ("%ID: 2").
I can see that after the upload of the source document (which already included the "%TYPES" section no according layer (and its feature) is created. Is that the problem? If so, how can I create the layer via the remote API?
Kind regards,
Samuel