Paoding Participle-Extended Dictionary

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.