Package net.sourceforge.align.filter

Examples of net.sourceforge.align.filter.Filter.apply()


    if (alignmentList == null) {
      alignmentList = parser.parse();
    }
   
    alignmentList = filter.apply(alignmentList);
    formatter.format(alignmentList);
  }
 
  private Pair<ModifyAlgorithm, ModifyAlgorithm> createUnifyRareWordsAlgorithms(
      CommandLine commandLine, List<Alignment> alignmentList) {
View Full Code Here


    filter = FilterDecorators.decorate(filter);
   
    Parser parser = new AlParser(getIn());
    Formatter formatter = new AlFormatter(getOut());
    List<Alignment> alignmentList = parser.parse();
    alignmentList = filter.apply(alignmentList);
    formatter.format(alignmentList);
  }

  private List<Alignment> loadAlignmentList(String fileName) {
    Reader reader = getReader(getFileInputStream(fileName));
View Full Code Here

        SOURCE_SEGMENT_ARRAY, TARGET_SEGMENT_ARRAY);
   
    // Mark middle alignment as fixed.
    alignmentList.get(1).setScore(Float.NEGATIVE_INFINITY);
   
    List<Alignment> resultAlignmentList = filter.apply(alignmentList);
    assertAlignmentListEquals(EXPECTED_SOURCE_SEGMENT_ARRAY,
        EXPECTED_TARGET_SEGMENT_ARRAY, resultAlignmentList);
  }
 
}
View Full Code Here

    filter = FilterDecorators.decorate(filter);
    Formatter formatter = new AlFormatter(getOut());
    if (alignmentList == null) {
      alignmentList = parser.parse();
    }
    alignmentList = filter.apply(alignmentList);
    formatter.format(alignmentList);
  }
 
  private AlignAlgorithm createAlgorithm(CommandLine commandLine,
      List<Alignment> alignmentList) {
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.