ctakes-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Finan, Sean" <Sean.Fi...@childrens.harvard.edu>
Subject RE: Trying to find UMLS Relations
Date Thu, 13 Oct 2016 01:17:12 GMT
Hi Bandeep,

So you are successfully identifying the relations but need more human-readable output?
Try using the PropertyTextWriter.  It will output properties and relations in a more readable
manner.  You can look at the code there to see the basics of grabbing and outputting relation
information.  Basically:

JCasUtil.select( jcas, BinaryTextRelation.class ).forEach( r -> System.out.println( r.getArg1().getArgument().getCoveredText()
+ " " + r.getCategory() + " " + r.getArg2().getArgument().getCoveredText()  );

Sean

-----Original Message-----
From: Bandeep Singh [mailto:bsingh@phemi.com] 
Sent: Wednesday, October 12, 2016 6:21 PM
To: user@ctakes.apache.org; dev@ctakes.apache.org
Subject: Trying to find UMLS Relations

Hi All,

I am trying to run UML Relations Annotator specifically LocatioOfRelationAnnotator and getting
follwoing raw output. Need some help in understanding the output .

*Sample Text*: The patient underwent a CT scan in April which did not reveal lesions in the
liver

All I really want is sometrhing like *locationOf(Liver,leisons) *
*Output:*


LocationOfTextRelation -> id:0 category:location_of discoveryTechnique:0
confidence:0.0 polarity:0 uncertainty:0 conditional:false LocationOfTextRelation -> id:0
category:location_of discoveryTechnique:0
confidence:0.0 polarity:0 uncertainty:0 conditional:false LocationOfTextRelation -> id:0
category:location_of discoveryTechnique:0
confidence:0.0 polarity:0 uncertainty:0 conditional:false LocationOfTextRelation -> id:0
category:location_of discoveryTechnique:0
confidence:0.0 polarity:0 uncertainty:0 conditional:false LocationOfTextRelation -> id:0
category:location_of discoveryTechnique:0
confidence:0.0 polarity:0 uncertainty:0 conditional:false LocationOfTextRelation -> id:0
category:location_of discoveryTechnique:0
confidence:0.0 polarity:0 uncertainty:0 conditional:false TemporalTextRelation -> id:0
category:CONTAINS discoveryTechnique:0
confidence:0.0 polarity:0 uncertainty:0 conditional:false

Any suggestions would be really helpful.

Thanks,
Bandeep
Mime
View raw message