Package net.sourceforge.align.filter

Examples of net.sourceforge.align.filter.Filter.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


    AlignAlgorithm algorithm =
      new AdaptiveBandAlgorithm(algorithmFactory, calculator);

    Filter filter = new Aligner(algorithm);
   
    return filter.apply(alignmentList);
    
  }
 
}
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

    AlignAlgorithm algorithm =
      new AdaptiveBandAlgorithm(algorithmFactory, calculator);

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

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

  }

}
View Full Code Here

    ModifyAlgorithm targetAlgorithm =
      new UnifyRareWordsCleanAlgorithm(targetVocabulary);

    Filter filter = new Modifier(sourceAlgorithm, targetAlgorithm);
   
    return filter.apply(alignmentList);
   
  }
 
  /**
   * First algorithm phase - align text by segment length (using similar
View Full Code Here

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

  /**
   * Selects only {@link #SELECT_FRACTION} one-to-one alignments from the
   * result.
 
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

    AlignAlgorithm algorithm =
      new AdaptiveBandAlgorithm(algorithmFactory, calculator);

    Filter filter = new Aligner(algorithm);
   
    return filter.apply(alignmentList);
    
  }
 
  /**
   * Unifies alignments from alignment list with reference alignment list.
View Full Code Here

  private List<Alignment> unifyAlignments(List<Alignment> alignmentList,
      List<Alignment> referenceAlignmentList) {
   
    Filter filter = new UnifyAligner(referenceAlignmentList);
   
    return filter.apply(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.