Examples of RelationAnnotation


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

    String otherBeginLine = matcher.group(8);
    String otherBeginCharacter = matcher.group(9);
    String otherEndLine = matcher.group(10);
    String otherEndCharacter = matcher.group(11);

    RelationAnnotation a = new RelationAnnotation();
    a.setConceptText(conceptText);
    a.setBegin(new Location(beginLine, beginCharacter));
    a.setEnd(new Location(endLine, endCharacter));
    a.setRelationType(RelationType.valueOf(relationTypeText.toUpperCase()));
    a.setOtherConceptText(otherConceptText);
    a.setOtherConceptBegin(new Location(otherBeginLine, otherBeginCharacter));
    a.setOtherConceptEnd(new Location(otherEndLine, otherEndCharacter));

//    System.out.format("    RELATION ANNOTATION OBJECT: %s%n", a);
//    System.out.format("    RELATION ANNOTATION OBJECT i2b2: %s%n", a.toI2B2String());
    return a;
  }
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.