Package uk.ac.shef.wit.simmetrics.similaritymetrics

Examples of uk.ac.shef.wit.simmetrics.similaritymetrics.Levenshtein


   * @param str1
   * @param str2
   * @return similarity between str1 and str2. current implementation uses Levenshtein
   */
  public static double getLevenshteinScore(String str1, String str2){
    return new Levenshtein().getSimilarity(str1.toLowerCase(), str2.toLowerCase());
  }
View Full Code Here

TOP

Related Classes of uk.ac.shef.wit.simmetrics.similaritymetrics.Levenshtein

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.