/** * Finds the feature within a set of given features that best match the target string. * @param features A list of strings containing the features to compare. * @param target The target string to compare against the features. * @return The similarity score with the highest value. */ public SimilarityScore findTop(List<String> features, String target) { return findTop(features, target, new DescendingSimilarityScoreComparator()); }
/** * Finds the feature within a set of given features that best match the target string. * @param features A list of strings containing the features to compare. * @param target The target string to compare against the features. * @return The similarity score with the highest value. */ public SimilarityScore findTop(List<String> features, String target) { return findTop(features, target, new DescendingSimilarityScoreComparator()); }
/** * Finds the feature within a set of given features that best match the target string. * @param features A list of strings containing the features to compare. * @param target The target string to compare against the features. * @return The similarity score with the highest value. */ public SimilarityScore findTop(List<String> features, String target) { return findTop(features, target, new DescendingSimilarityScoreComparator()); }
/** * Finds the feature within a set of given features that best match the target string. * @param features A list of strings containing the features to compare. * @param target The target string to compare against the features. * @return The similarity score with the highest value. */ public SimilarityScore findTop(List<String> features, String target) { return findTop(features, target, new DescendingSimilarityScoreComparator()); }