com.fasterxml.jackson.databind.RuntimeJsonMappingException: Can not construct instance of java.lang.Double from String value 'Q5622021': not a valid Double value
@JsonCreator
public ResItem(@JsonProperty("entityId") String entityId,
@JsonProperty("docId") String docId,
@JsonProperty("indocId") String indocId,
@JsonProperty("mentionStart") int mentionStart,
@JsonProperty("mentionEnd") int mentionEnd,
@JsonProperty("mentionText") String mentionText,
@JsonProperty("confidence") double confidence) {
this.entityId = entityId;
this.docId = docId;
this.indocId = indocId;
this.mentionStart = mentionStart;
this.mentionEnd = mentionEnd;
this.mentionText = mentionText;
this.confidence = confidence;
}
MappingIterator<ResItem> iterator = mapper.reader(ResItem.class).with(schema).readValues(inputStream);