1024programmer News Processing keywords (weaving dream keyword extraction function)

Processing keywords (weaving dream keyword extraction function)

I’m sorry Extracted the dream weaving keyword loading function

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

Steps to use:

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

1 require_once './../splitword.class.php'; //Load extracted keywords file
 2 $sp = new SplitWord('utf-8','utf-8'); //  Initialization gives two default character sets (this set of extraction keywords are UTF-8)
 3 $sp->SetSource($_POST['title'],'utf-8','utf-8');//Parameters (words to be extracted, character set)
 4 $sp->StartAnalysis(); //Start analysis
 5 $titleindexs = preg_replace("/#p#|#e#/",'',$sp  ->GetFinallyIndex()); //Extract keywords

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

①: Required files: base_dic_full.dic base_dic_full.zip words_addons.dic zip.class.php

Technology Sharing

Technology Sharing

Technology Sharing

Modify $_SERVER[‘DOCUMENT_ROOT’] to specify the path

Process keywords (dream weaving keyword extraction function)


This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/processing-keywords-weaving-dream-keyword-extraction-function/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索