Class SimpleReplaceDataLoader


  • public final class SimpleReplaceDataLoader
    extends Object
    Load replacement data from a UTF-8 file. One replacement per line, word and its replacement(s) separated by an equals sign. Both the word and the replacements can have more than one form if separated by pipe symbols.
    Since:
    3.0
    • Constructor Detail

      • SimpleReplaceDataLoader

        public SimpleReplaceDataLoader()
    • Method Detail

      • loadWords

        public Map<String,​List<String>> loadWords​(String path)
        Load replacement rules from a utf-8 file in the classpath.