Class Utils


  • public class Utils
    extends Object
    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • getNGrams

        public static java.util.stream.Stream<String> getNGrams​(String value,
                                                                int size)
      • getNormalizedString

        public static String getNormalizedString​(String str,
                                                 Map<String,​String> dict)
        utility method to apply dictionary for normalizing strings
        Parameters:
        str - A String of element value to be nomalized
        dict - A dictonary map containing the mapping of string to normalize
        Returns:
        the normalized string
      • isNumeric

        public static boolean isNumeric​(String str)