Examples of CueSubType


Examples of org.mitre.medfacts.i2b2.annotation.CueSubType

        annotation = a1;
        break;
      case CUE:
        String cueSubTypeString = matcher.group(11);
        CueSubType cueSubType = CueSubType.valueOf(cueSubTypeString.toUpperCase());
        String scopeRefString = matcher.group(12);
        int scopeRef = Integer.parseInt(scopeRefString);

        CueAnnotation a2 = new CueAnnotation();
        a2.setCueSubType(cueSubType);
View Full Code Here

Examples of org.mitre.medfacts.i2b2.annotation.CueSubType

      AssertionAnnotation assertForTI = trainingInstance.getAssertAnnotateForTI();
      //Count number of enclosing negation and speculation scopes
      for (ScopeAnnotation enclosingScope : assertForTI.getEnclosingScopes())
      {
        CueAnnotation cueForScope = enclosingScope.getCueForScope();
        CueSubType scopeType = cueForScope.getCueSubType();
        if (scopeType == CueSubType.NEGATION) enclosingNegationScopeCnt++;
        else if (scopeType == CueSubType.SPECULATION) enclosingSpeculationScopeCnt++;
        else logger.info(String.format("WARNING: CUE %s%n  FOR SCOPE %s%n ENCLOSING %s%n is neither a negation nor speculation cue%n", cueForScope, enclosingScope,assertForTI));
      }
      if (checkForEnabledFeature("statusRuleMixNMatchFeature"))
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.