Package ch.uzh.ifi.seal.changedistiller.treedifferencing.matching.measure

Examples of ch.uzh.ifi.seal.changedistiller.treedifferencing.matching.measure.NGramsCalculator


public class WhenStringSimilarityByNGramsIsCalculated extends WhenStringSimilarityIsCalculated {

    @Override
  protected double calculateSimilarity(String left, String right) {
        return new NGramsCalculator(2).calculateSimilarity(left, right);
    }
View Full Code Here


     * @param matchingSet
     *            in which the matcher stores the match pairs
     * @return the best leaf tree matcher
     */
    public static TreeMatcher getMatcher(Set<NodePair> matchingSet) {
        StringSimilarityCalculator leafCalc = new NGramsCalculator(2);
        double lTh = 0.6;

        // node string matching
        StringSimilarityCalculator nodeStringCalc = leafCalc;
        double nStTh = lTh;
View Full Code Here

        return fullName;
    }

    @Override
    public double similarity(StructureNode left, StructureNode right) {
        return new NGramsCalculator(2).calculateSimilarity(left.getName(), right.getName());
    }
View Full Code Here

TOP

Related Classes of ch.uzh.ifi.seal.changedistiller.treedifferencing.matching.measure.NGramsCalculator

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.