快十年没碰过编程了,最近公司服务器换了一下,挪腾机器的过程里面顺便触发了再写点程序玩玩的想法,于是拿起.net的教材看了两天,练手写了个,测试反正能用,哈哈,发来让高手指点指点,揪揪错!
盘古开源分词组件直接去http://pangusegment.codeplex.com/下载就是了,Pangu.dll和Pangu.xml文件放入wwwroot的bin目录,字典别忘记放进去bin下的Dictionaries目录,呵呵,pangu.xml要设置好Dictionaries目录位置
用aspx共写了三个程序,第一个:
文件名:Default.aspx,存放目录:wwwroot
![](https://i-blog.csdnimg.cn/blog_migrate/cdec0645add3fc3c328197dda5c76203.gif)
<%
@ Page Language
=
"
C#
"
AutoEventWireup
=
"
true
"
CodeFile
=
"
Default.aspx.cs
"
Inherits
=
"
_Default
"
%>
< html >
< head runat = " server " >
< title > WWW.RCSKY.NET </ title >
</ head >
< body >
< p >
< form id = " form1 " r
< html >
< head runat = " server " >
< title > WWW.RCSKY.NET </ title >
</ head >
< body >
< p >
< form id = " form1 " r