ctakes-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CTAKES-288) Severity not set for DiseaseDisorderMention
Date Thu, 20 Mar 2014 18:40:47 GMT

    [ https://issues.apache.org/jira/browse/CTAKES-288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13942105#comment-13942105
] 

ASF subversion and git services commented on CTAKES-288:
--------------------------------------------------------

Commit 1579707 from james-masanz@apache.org in branch 'ctakes/trunk'
[ https://svn.apache.org/r1579707 ]

more of fix for CTAKES-288 - index name change - creation of text relation annotations has
degree_of and location_of separated into two indexes, no longer just one with BinaryTextRelation
in the name

> Severity not set for DiseaseDisorderMention
> -------------------------------------------
>
>                 Key: CTAKES-288
>                 URL: https://issues.apache.org/jira/browse/CTAKES-288
>             Project: cTAKES
>          Issue Type: Bug
>          Components: ctakes-relation-extractor, ctakes-template-filler
>    Affects Versions: 3.1.1
>            Reporter: Pei Chen
>            Assignee: James Joseph Masanz
>            Priority: Minor
>             Fix For: 3.1.2
>
>
> > 
> > If I'm reading this logic correctly, it will only populate severity for
> > SignSymptomMention....   Can't think of why not to populate it if it exists in
> > the BinaryTextRelations-
> > have you tried adding: ddm.setSeverity(degreeOfTextRelation); instead 
> > of logging the error ???
> > 
> > 	    			if (eventMention instanceof
> > DiseaseDisorderMention) {
> > 	    				DiseaseDisorderMention ddm =
> > (DiseaseDisorderMention) eventMention;
> > 	    				logger.error("Need to implement attr for " + relation + " for 
> > DiseaseDisorderMention");
> > 	    			} else if (eventMention instanceof
> > SignSymptomMention) {
> > 	    				SignSymptomMention ssm =
> > (SignSymptomMention) eventMention;
> > 
> > 	ssm.setSeverity(degreeOfTextRelation);
> > 
> > Would you mind 
> > > > > Hi,
> > > > >
> > > > > I am trying to output the relations associated with
> > > > DiseaseDisorderMentions
> > > > > and other types.  But I want to start by iterating over 
> > > > > DiseaseDisorderMention, not BinaryTextRelations since I want to 
> > > > > be sure
> > > > to
> > > > > find them all, even if they have no associated relation.
> > > > >
> > > > > I always get null when using any of the getters like 
> > > > > "getSeverity()".  I
> > > > am
> > > > > using the example text "He had a slight fracture in the proximal

> > > > > right
> > > > fibula".
> > > > > When I iterate over BinaryTextRelations, I see the following 
> > > > > valid
> > > > values:
> > > > > BinaryTextRelation slightFracture = iterator.next();
> > > > > slightFracture.getArg1().getArgument().getCoveredText() is "fracture"
> > > > > slightFracture.getArg2().getArgument().getCoveredText() is "slight".
> > > > > However, for the "fracture" DiseaseDisorderMention, 
> > > > > getSeverity() is
> > > > null.
> > > > >  If it wasn't, I would then grab 
> > > > > disease.getSeverity().getArg1().getArgument().getCoveredText(), 
> > > > > or for Arg2.
> > > > >
> > > > > Thanks,
> > > > > Chase
> > > >



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message