public static < T extends Levenshtein > T cosine ( String baseTarget , String compareTarget ) { return cosine ( baseTarget , compareTarget , null ) ; }
Returns a new Cosine similarity instance with compare target string