Uploaded image for project: 'cTAKES'
  1. cTAKES
  2. CTAKES-288

Severity not set for DiseaseDisorderMention

    XMLWordPrintableJSON

Details

    Description

      >
      > 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
      > > >

      Attachments

        Activity

          People

            james-masanz James Joseph Masanz
            chenpei Pei Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: