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

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


    }

    @Override
    public double similarity(StructureNode left, StructureNode right) {
        if (!left.getName().equals(right.getName())) {
            return new LevenshteinSimilarityCalculator().calculateSimilarity(left.getContent(), right.getContent());
        } else {
            return 1.0;
        }
    }
View Full Code Here


        return fullName;
    }

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

TOP

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

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.