You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
579 B

8 years ago
  1. 文件说明:
  2. 1、base_dic_full.dic
  3. hash索引 -- 字典带有词频和词性标志。
  4. 2、words_addons.dic
  5. s 开头的表示停止词 u 后缀词(地名后缀、数学单位等) n 前导词(姓、汉字数词等) a 后导词(地区,部门等)
  6. 3、 not-build/base_dic_full.txt
  7. 没编译过的词典源码
  8. 4、重新编译词典的方法:
  9. <?php
  10. header('Content-Type: text/html; charset=utf-8');
  11. require_once('phpanalysis.class.php');
  12. $pa = new PhpAnalysis('utf-8', 'utf-8', false);
  13. $pa->MakeDict( sourcefile, 16 , 'dict/base_dic_full.dic');
  14. echo "OK";
  15. ?>