You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ctakes.apache.org by Bandeep Singh <bs...@phemi.com> on 2016/10/12 22:21:29 UTC

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

Re: Trying to find UMLS Relations

Posted by Bandeep Singh <bs...@phemi.com>.
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
>

RE: Trying to find UMLS Relations

Posted by "Finan, Sean" <Se...@childrens.harvard.edu>.
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