Hi Avanish,

For future reference, please provide a snippet of the error when one is thrown 
or logged.  It can really help others and possibly get you a faster and 
possibly more accurate answer.  thanks.

The first problem is that SmokerNamedEntityAnnotation is an annotation type and 
not an analysis engine.  You probably want to replace it with 
KuRuleBasedClassifierAnnotator, which is an analysis engine that helps 
determine smoking status.  That class is in package 
org.apache.ctakes.smokingstatus.ae.

The second problem is the call to .createAnnotatorDescription();   Not all 
ctakes analysis engines have this method.  None of the smoking status engines 
have this method.  As I do not know the class for your object "builder", I 
cannot with certainty tell you what to substitute.  Are you using a builder in 
uimafit or a builder in ctakes core?  If it is the former then you'll need 
something like add( 
AnalysisEngineFactory.createEngineDescription(KuRuleBasedClassifierAnnotator.class,
 {Parameters} ) ); while if it is the latter you can just use add( 
KuRuleBasedClassifierAnnotator.class, {Parameters} );

Sean

-----Original Message-----
From: Kumar, Avanish [mailto:avanish.ku...@optum.com] 
Sent: Tuesday, June 06, 2017 5:37 AM
To: dev@ctakes.apache.org
Subject: adding analysis engines to pipeline

Hi,
      I want to add smoking status and side effects analysis engines to my 
pipeline but unable to proceed as it is giving error when I write

                                               
builder.add(SmokerNamedEntityAnnotation.createAnnotatorDescription());



Thanks and Regards,
Avanish Kumar
+91-7754070116



This e-mail, including attachments, may include confidential and/or proprietary 
information, and may be used only by the person or entity to which it is 
addressed. If the reader of this e-mail is not the intended recipient or his or 
her authorized agent, the reader is hereby notified that any dissemination, 
distribution or copying of this e-mail is prohibited. If you have received this 
e-mail in error, please notify the sender by replying to this message and 
delete this e-mail immediately.

Reply via email to