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 Modify $_SERVER[‘DOCUMENT_ROOT’] to specify the path Process keywords (dream weaving keyword extraction function)