Package org.apache.ctakes.assertion.zoner.types

Examples of org.apache.ctakes.assertion.zoner.types.Zone


    }
    // Add the zone annotations
    List<Range> rangeList = zonerCli.getRangeList();
    for (Iterator<Range> i = rangeList.iterator(); i.hasNext()) {
      Range r = i.next();
        Zone zAnnot = new Zone(jcas)
        zAnnot.setBegin(r.getBegin());
        zAnnot.setEnd(r.getEnd());
        zAnnot.setLabel(r.getLabel());
        zAnnot.addToIndexes();
        logger.info(String.format("added new zone annotation [%d-%d] \"%s\"", zAnnot.getBegin(), zAnnot.getEnd(), zAnnot.getCoveredText()));
    }
   
//    List<Range> subsectionRangeList = zonerCli.getSubsections();
//    for (Iterator<Range> i = subsectionRangeList.iterator(); i.hasNext();  ) {
//      Range r = i.next();
View Full Code Here


    }
    // Add the zone annotations
    List<Range> rangeList = zonerCli.getRangeList();
    for (Iterator<Range> i = rangeList.iterator(); i.hasNext()) {
      Range r = i.next();
        Zone zAnnot = new Zone(jcas)
        zAnnot.setBegin(r.getBegin());
        zAnnot.setEnd(r.getEnd());
        zAnnot.setLabel(r.getLabel());
        zAnnot.addToIndexes();
        logger.info(String.format("added new zone annotation [%d-%d] \"%s\"", zAnnot.getBegin(), zAnnot.getEnd(), zAnnot.getCoveredText()));
    }
   
//    List<Range> subsectionRangeList = zonerCli.getSubsections();
//    for (Iterator<Range> i = subsectionRangeList.iterator(); i.hasNext();  ) {
//      Range r = i.next();
View Full Code Here

    }
    // Add the zone annotations
    List<Range> rangeList = zonerCli.getRangeList();
    for (Iterator<Range> i = rangeList.iterator(); i.hasNext()) {
      Range r = i.next();
        Zone zAnnot = new Zone(jcas)
        zAnnot.setBegin(r.getBegin());
        zAnnot.setEnd(r.getEnd());
        zAnnot.setLabel(r.getLabel());
        zAnnot.addToIndexes();
        logger.info(String.format("added new zone annotation [%d-%d] \"%s\"", zAnnot.getBegin(), zAnnot.getEnd(), zAnnot.getCoveredText()));
    }
   
//    List<Range> subsectionRangeList = zonerCli.getSubsections();
//    for (Iterator<Range> i = subsectionRangeList.iterator(); i.hasNext();  ) {
//      Range r = i.next();
View Full Code Here

TOP

Related Classes of org.apache.ctakes.assertion.zoner.types.Zone

Copyright © 2018 www.massapicom. 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.