Paoding has two kinds of participle modes:
Most-words: The maximum word quantity participle way, this pattern corresponding dictionary compiles the class to Mostwordsmodedictionariescompiler
Max-word-length: According to the word in the dictionary in the original order to compile, basically no longer do other processing, this pattern corresponds to the dictionary compiled class for Sortingdictionariescompiler
Most-words is the default participle mode.
Paoding-dic-home.properties files added under Classpath
Paoding.dic.home.config-fisrt=this
Paoding.dic.home=classpath:dic
Classpath under the configuration add paoding-analyzer.properties, the content below (need to choose according to the word segmentation mode which kind of compiler):
#PaodingAnlyzer Mode, "Most-words", "Max-word-length", "Class:com.xxx.MyTokenCollectorImpl" ...
#paoding. analyzer.mode=most-words
#paoding. Analyzer.dictionaries.compiler=net.paoding.analysis.analyzer.impl.mostwordsmodedictionariescompiler
#paoding. analyzer.mode=max-word-length
Paoding.analyzer.dictionaries.compiler=net.paoding.analysis.analyzer.impl.sortingdictionariescompiler
Finally erase the. Compile file