setAttributesFromOriginal
private void setAttributesFromOriginal(IdentifiedAnnotation mention,
IdentifiedAnnotation original)
throws CASException
Copy values from original to mention and add mention to the indexes.
If original is a MedicationEventMention (which used to be created by ctakes-drug-ner),
create a MedicationMention from the MedicationEventMention, setting the MedicationMention specific
attributes like dosage from the MedicationEventMention attributes.
- Parameters:
mention
- The annotation to copy values tooriginal
- The annotation to copy values from
- Throws:
CASException