Examples of AlignmentImpossibleException


Examples of net.sourceforge.align.filter.aligner.AlignmentImpossibleException

   *     of source and target input segments are different
   */
  public List<Alignment> align(List<String> sourceSegmentList,
      List<String> targetSegmentList) {
    if (strict && (sourceSegmentList.size() != targetSegmentList.size())) {
      throw new AlignmentImpossibleException("Cannot align 1 to 1 " +
          "- segment amounts are not equal");
    } else if (sourceSegmentList.size() == 0 &&
        targetSegmentList.size() == 0) {
      return Collections.emptyList();
    } else {
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.