Deal with keywords (weaving dream keyword extraction function)

Source: Internet
Author: User

I ' m sorry extract is the Dream keyword loading function

Attachment download: http://files.cnblogs.com/subtract/keyword extract. zip

Steps to use:

1. Load the splitword.class.php file and extract

1 require_once‘./.. /splitword.class.php ';//loading extracted keyword files2 $sp=NewSplitword (' Utf-8 ', ' utf-8 ');//Initialize gives two default character sets (this set of extracted keywords is UTF-8)3 $sp->setsource ($_post[' title '], ' utf-8 ', ' utf-8 ');//parameters (words to be extracted, character sets)4 $sp->startanalysis ();//Start performing analysis5 $titleindexs=Preg_replace("/#p #| #e #/", ",$sp->getfinallyindex ());//Extract Keywords

2. Set splitword.class.php to join the dictionary

①: Required Documents: Base_dic_full.dic Base_dic_full.zip words_addons.dic zip.class.php

    

Modify $_server[' Document_root '] for the specified path

Deal with keywords (weaving dream keyword extraction function)

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.