Class SimpleReplaceDataLoader


  • public final class SimpleReplaceDataLoader
    extends java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> loadWords​(java.lang.String path)
      Load replacement rules from a utf-8 file in the classpath.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleReplaceDataLoader

        public SimpleReplaceDataLoader()
    • Method Detail

      • loadWords

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