Sure, I will do that.

Thanks.

-----Original Message-----
From: Pei Chen [mailto:[email protected]] 
Sent: Tuesday, July 08, 2014 3:49 PM
To: [email protected]
Subject: Re: Retrieving CUIs

The logic should follow what James described.  I would write a new Annotator 
(or Consumer ) rather than extend DictionaryLookupAnnotator

i.e. run through the complete pipeline, but at the end, iterate through the 
IdentifiedAnnotations and get the CUI's from the ontologyConceptArr().




On Tue, Jul 8, 2014 at 3:44 PM, Nick Nikandish < [email protected]> 
wrote:

> Hi Chen,
>
> I only need CUI. I tried to extend DictoanryLoopkupAnnotator. Is this 
> a writer approach?
>
> Thanks,
> Nick
>
> -----Original Message-----
> From: Pei Chen [mailto:[email protected]]
> Sent: Tuesday, July 08, 2014 3:42 PM
> To: [email protected]
> Subject: Re: Retrieving CUIs
>
> Nick,
> It is fairly easy to extend an annotator (either a java class or 
> groovy
> script) to extract just the items for your specific use case.
> Check out the HelloWorldAnnotator and Pipeline from ctakes-examples 
> project.  I can write an example that just outputs the CUI if you 
> like, but I have a hunch that you may also want other attributes such 
> as (negation?, etc.)?
>
>
> On Tue, Jul 8, 2014 at 2:42 PM, Nick Nikandish < 
> [email protected]> wrote:
>
> > Hi there,
> >
> > I was wondering if there is any way to retrieve CUIs for the tokens 
> > of a free text in CTakes without changing the codebase? I am able to 
> > retrieve CUIs for only medications  in a text.
> >
> >
> >
> > Thanks,
> > Nick
> >
> >
> >
>

Reply via email to