Pret-a-LLOD / teanga-dkpro-wrapper

A wrapper for DKPro in Teanga
0 stars 0 forks source link

collection deserialization error #2

Closed jmccrae closed 3 years ago

jmccrae commented 3 years ago
curl -v -X POST -H "Content-Type: application/json" --data \                                                                                      
    '{"documentText":"this is a test","language":"en","token":[{"begin":0,"end":4},{"begin":5,"end":7},{"begin":8,"end":9},{"begin":10,"end":14}],"sentence":[{"begin":0,"end":14}]}' \
    http://localhost:8080/OpenNlpPosTagger

Result:

Cannot find a deserializer for non-concrete Collection type [collection type; class org.apache.uima.cas.text.AnnotationIndex, contains [simple type, class org.apache.uima.cas.text.AnnotationFS]]
* Connection #0 to host localhost left intact
 at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 1