Examples of NGramsCalculator


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

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

     * @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

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

        return fullName;
    }

    @Override
    public double similarity(StructureNode left, StructureNode right) {
        return new NGramsCalculator(2).calculateSimilarity(left.getName(), right.getName());
    }
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.