Examples of SubSectionIndicator


Examples of org.apache.ctakes.padtermspotter.fsm.output.SubSectionIndicator

            endToken = token;
          }

          BaseToken startToken = (BaseToken) tokens
              .get(tokenStartIndex);
          SubSectionIndicator subs = null;
          if (fsm.equals(iv_subSectionIDConfirmMachine)) {
            subs = new SubSectionIndicator(startToken
                .getStartOffset(), endToken.getEndOffset(),
                SubSectionIndicator.CONFIRMED_STATUS);
          } else if (fsm.equals(iv_subSectionIDNegateMachine)) {
            subs = new SubSectionIndicator(startToken
                .getStartOffset(), endToken.getEndOffset(),
                SubSectionIndicator.NEGATED_STATUS);
          } else if (fsm.equals(iv_subSectionIDProbableMachine)) {
            subs = new SubSectionIndicator(startToken
                .getStartOffset(), endToken.getEndOffset(),
                SubSectionIndicator.PROBABLE_STATUS);
          }
          outSet.add(subs);
View Full Code Here

Examples of org.apache.ctakes.padtermspotter.fsm.output.SubSectionIndicator

    }
  }

  private List<Object> sortSubSectionItr(Object[] holdOutSet) {
    List<Object> holdList = new ArrayList<Object>();
    SubSectionIndicator tempSsi = null;
    for (int i = 0; i < holdOutSet.length - 1; i++) {
      SubSectionIndicator hos1 = (SubSectionIndicator) holdOutSet[i];
      SubSectionIndicator hos2 = (SubSectionIndicator) holdOutSet[i + 1];
      if (hos1.getStartOffset() > hos2.getStartOffset()) {
        tempSsi = hos2;
        holdOutSet[i + 1] = hos1;
        holdOutSet[i] = tempSsi;
        sortSubSectionItr(holdOutSet);
      }
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.