ctakes-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sreejith S <srssreej...@gmail.com>
Subject Re: Smoking Status Pipeline
Date Thu, 26 Mar 2015 06:28:24 GMT
Hi Britt,

Thank you for the pointers. I tried it by below code and it only gives the
last Smoker Class. and .getRecordID is null.

SimplePipeline.runPipeline(jcas, aed);

for(SmokingDocumentClassification smk : JCasUtil.select(jcas,
SmokingDocumentClassification.class)) {
System.out.println("Class : "+smk.getClassification()
+"\n Sentence ID : "+smk.getRecordID());
}

Is this the right way ?

Output
----------

26 Mar 2015 11:45:37  INFO SentenceAdjuster - started Sentence merging
process.
26 Mar 2015 11:45:37  INFO DictionaryLookupAnnotator - process(JCas)
26 Mar 2015 11:45:37  INFO ResolutionAnnotator -
***SmokerNameEntity***smoke 0
26 Mar 2015 11:45:37  INFO ResolutionAnnotator -
***SmokerNameEntity***cigarettes 0
26 Mar 2015 11:45:37  INFO ResolutionAnnotator - |She used to smoke about
half a pack a day, but for the last month she has been down to about 3-5
cigarettes a day.|CURRENT_SMOKER|0
26 Mar 2015 11:45:37  INFO ResolutionAnnotator - |She used to smoke about
half a pack a day, but for the last month she has been down to about 3-5
cigarettes a day.|CURRENT_SMOKER|0
26 Mar 2015 11:45:37  INFO SentenceDetector - Starting processing.
26 Mar 2015 11:45:37  INFO TokenizerAnnotatorPTB - process(JCas) in
org.apache.ctakes.core.ae.TokenizerAnnotatorPTB
Class : CURRENT_SMOKER
 Sentence ID :

Thank you,


On Wed, Mar 25, 2015 at 9:08 PM, britt fitch <
britt.fitch@wiredinformatics.com> wrote:

> Hi Sreejith,
>
> The Smoking Status module uses an extended type system.  Search for these
> types:
>
> org.apache.ctakes.smokingstatus.type.SmokingDocumentClassification
>
> org.apache.ctakes.smokingstatus.type.UnknownSmokerNamedEntityAnnotation
>
> org.apache.ctakes.smokingstatus.type.NonSmokerNamedEntityAnnotation;
>
> org.apache.ctakes.smokingstatus.type.SmokerNamedEntityAnnotation;
>
>
> In partiuclar: SmokingDocumentClassification.getClassification().
>
> Cheers,
>
> Britt
>
>
>     Britt Fitch
> Wired Informatics
> 265 Franklin St Ste 1702
> Boston, MA 02110
> http://wiredinformatics.com
> Britt.Fitch@wiredinformatics.com
>
> On Mar 25, 2015, at 6:28 AM, Sreejith S <srssreejith@gmail.com> wrote:
>
> Hi Team,
>
> I executed SimulatedProdSmokingTAE.xml from Java and its working fine. I
> can see the classified sentences and its smoking status through log
> messages from ResolutionAnnotator class. Is there any possibility to get
> the Sentences and smoking status from a class / object in ctakes ?
>
> Please give me some pointers on this. I would be thankful.
>
> Thank You,
>
> *Sreejith*
>
>
>
>
>
>
>


-- 


*Sreejith.S*

Mime
View raw message