Package net.sourceforge.align.filter

Examples of net.sourceforge.align.filter.Filter


      new ForwardBackwardAlgorithmFactory();
   
    AlignAlgorithm algorithm =
      new AdaptiveBandAlgorithm(algorithmFactory, calculator);

    Filter filter = new Aligner(algorithm);
   
    return filter.apply(alignmentList);
    
  }
View Full Code Here


   
    filterList.add(new OneToOneSelector());
   
    filterList.add(new FractionSelector(SELECT_FRACTION));
   
    Filter filter = new CompositeFilter(filterList);   
   
    return filter.apply(alignmentList);
   
  }
View Full Code Here

      new ForwardBackwardAlgorithmFactory();
   
    AlignAlgorithm algorithm =
      new AdaptiveBandAlgorithm(algorithmFactory, calculator);

    Filter filter = new Aligner(algorithm);
   
    return filter.apply(alignmentList);
    
  }
View Full Code Here

      new ViterbiAlgorithmFactory();
   
    AlignAlgorithm algorithm =
      new AdaptiveBandAlgorithm(algorithmFactory, calculator);
   
    Filter filter = new Aligner(algorithm);
   
    return filter.apply(alignmentList);

  }
View Full Code Here

    ModifyAlgorithm sourceAlgorithm =
      new UnifyRareWordsCleanAlgorithm(sourceVocabulary);
    ModifyAlgorithm targetAlgorithm =
      new UnifyRareWordsCleanAlgorithm(targetVocabulary);

    Filter filter = new Modifier(sourceAlgorithm, targetAlgorithm);
   
    return filter.apply(alignmentList);
   
  }
View Full Code Here

      new ForwardBackwardAlgorithmFactory();
   
    AlignAlgorithm algorithm =
      new AdaptiveBandAlgorithm(algorithmFactory, calculator);
   
    Filter filter = new Aligner(algorithm)
   
    return filter.apply(alignmentList);
  }
View Full Code Here

   */
  private List<Alignment> selectBestAlignments(List<Alignment> alignmentList) {
    List<Filter> filterList = new ArrayList<Filter>();
    filterList.add(new OneToOneSelector());
    filterList.add(new FractionSelector(SELECT_FRACTION));
    Filter filter = new CompositeFilter(filterList);   
    return filter.apply(alignmentList);
  }
View Full Code Here

      new ForwardBackwardAlgorithmFactory();
   
    AlignAlgorithm algorithm =
      new AdaptiveBandAlgorithm(algorithmFactory, calculator);

    Filter filter = new Aligner(algorithm);
   
    return filter.apply(alignmentList);
    
  }
View Full Code Here

   * @see UnifyAligner
   */
  private List<Alignment> unifyAlignments(List<Alignment> alignmentList,
      List<Alignment> referenceAlignmentList) {
   
    Filter filter = new UnifyAligner(referenceAlignmentList);
   
    return filter.apply(alignmentList);
   
  }
View Full Code Here

      throw new UnknownParameterException("part");
    }
   
    Formatter formatter = new AlFormatter(getOut());
   
    Filter filter = new Modifier(sourceAlgorithm, targetAlgorithm);
    filter = FilterDecorators.decorate(filter);

    if (alignmentList == null) {
      alignmentList = parser.parse();
    }
   
    alignmentList = filter.apply(alignmentList);
    formatter.format(alignmentList);
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.align.filter.Filter

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.