ctakes-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bandeep Singh <bsi...@phemi.com>
Subject Re: Trying to find UMLS Relations
Date Thu, 13 Oct 2016 02:33:36 GMT
Thanks a ton Sean.

That really helped, now I am getting the relations in human readable format.

Thanks Again,
Bandeep

On Wed, Oct 12, 2016 at 6:17 PM, Finan, Sean <
Sean.Finan@childrens.harvard.edu> wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message