<?php //phper 地带 //http://www.php.cn/ $sub = @$_POST['submit']; $text = @$_POST['text']; if(!empty($sub)&&!empty($text)){ require_once "lib_splitword_full.php"; echo $text; echo '<br /><hr />'; $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>
下载