Harpreet, Yes, if you create a new annotator, you can essentially create any objects you need and/or extend the existing cTAKES type system. Hope that helps. --Pei
On Thu, Sep 4, 2014 at 2:27 PM, Harpreet Khanduja <hsk5...@rit.edu> wrote: > Hello Pei, > Thank you so much for getting back on that. > Is there something for adding new Mentions > like the ones we already have LabMention, MedicationMention. > > I understand that these mentions are part of the whole ctakes hierarchy > and they are also > assigned the typeIds, one for each mention. > So, do I have to make changes in the whole ctakes hierarchy to add the > typeId for new mention. > Or just by creating a new annotator I would be able to solve this problem? > > Thanks a lot. > > Regards, > Harpreet > > > > On Wed, Sep 3, 2014 at 4:06 PM, Pei Chen <chen...@apache.org> wrote: > >> Harpreet, >> MedicationMention attributes such as >> .medicationfrequency >> .medicationDosage >> Can be filled via the DrugMentionAnnotator [1]. If I recall >> correctly, I believe you can just add that annotator after the >> DictionaryLookup in your pipeline. >> >> [1] >> http://svn.apache.org/repos/asf/ctakes/trunk/ctakes-drug-ner/desc/analysis_engine/DrugMentionAnnotator.xml >> >> >> On Wed, Sep 3, 2014 at 3:47 PM, Harpreet Khanduja <hsk5...@rit.edu> wrote: >> > Hello, >> > Hope everyone is doing great. >> > I would appreciate some help in these two questions. >> > >> > 1. How would one go about finding values for attributes >> > "medicationfrequency", "medicationAllergy", " >> > medicationDosage" and others which are present in >> > MedicationMention and adding them to the End result of ctakes >> > pipeline. >> > >> > >> > 2. Is there a way create a new Mention like LabMention or >> > MedicationMention ? >> > >> > Any help would be really appreciated. >> > Thank you. >> > >> > Regards, >> > Harpreet >>