I would like to augment NamedEntity annotations with "grounding" information. For example, for a Time annotation, I might want to add a String field 'standardizedTime' which would be the JSON serialization of a Java Date object. For a Location object, I might add Double fields 'lattitude' and 'longitude'.
What would be the best way to do this?
In a past project where I had control over the definition of the NamedEntity type, I simply defined it so it had an String feature called 'additionalData'. This feature contained the JSON serialization of a Map<String,Object> in which I could put whatever I wanted.
But since I am now using DKPro, I have to use the DKPRo NamedEntity class which does not seem to have a mechanism for augmenting the annotations with arbitrary data.
Any suggestion?
Thx.