Package net.sourceforge.align.filter.meta

Examples of net.sourceforge.align.filter.meta.CompositeFilter.apply()


   
    filterList.add(new FractionSelector(SELECT_FRACTION));
   
    Filter filter = new CompositeFilter(filterList);   
   
    return filter.apply(alignmentList);
   
  }
 
  /**
   * Second algorithm phase - align by segment contents. First trains
View Full Code Here


   
    filterList.add(new FractionSelector(SELECT_FRACTION));
   
    Filter filter = new CompositeFilter(filterList);   
   
    return filter.apply(alignmentList);
   
  }
 
  /**
   * Second algorithm phase - align by segment contents and. First trains
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);
  }
 
  /**
   * Second algorithm phase - align by segment contents. First trains
   * translation model and language models using alignment obtained in first
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.