Home > php教程 > PHP源码 > php中文智能分词

php中文智能分词

PHP中文网
Release: 2016-05-25 17:07:10
Original
1909 people have browsed it

[PHP]代码  

<?php
//phper 地带
//http://www.php.cn/
$sub  = @$_POST[&#39;submit&#39;];
$text = @$_POST[&#39;text&#39;];
if(!empty($sub)&&!empty($text)){
require_once "lib_splitword_full.php";
echo $text;
echo  &#39;<br /><hr />&#39;;
$sp = new SplitWord();
echo $sp->SplitRMM($text);
$sp->Clear();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>智能分词功能-phper 地带</title>
</head>

<body>
<h1>智能分词功能 - phper 地带</h1>
<br />
<form action="" method="POST">
请输入要分词的字符:<input type="text" name="text" value="" /><br />
<input type="submit" name="submit" value="确定" />
</form>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<p align="center">技术支持:<a href="http://www.phperzone.cn">phper 地带</a><span style="display:none;"></span></p>
</body>
</html>
Copy after login

                       

[文件]     fenci.rar ~ 661KB        

 下载

php中文智能分词fenci.rar

         

                                       


                   

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template