资源简介
VS2013使用盘古分词先对用户输入的句子进行分割,在进行词语的查询的使用软件

代码片段和文件信息
using System.Collections;
using System.IO;
using Lucene.Net.Analysis;
namespace NSharp.SearchEngine.Lucene.Analysis.Cjk
{
/**/
/**
* Filters CJKTokenizer with StopFilter.
*
* @author Che Dong
*/
public class CJKAnalyzer : Analyzer
{
//~ Static fields/initializers ---------------------------------------------
/**/
/**
* An array containing some common English words that are not usually
* useful for searching and some double-byte interpunctions.
*/
public static string[] STOP_WORDS = {
“a“ “and“ “are“ “as“ “at“ “be“
“but“ “by“ “for“ “if“ “in“
“into“ “is“ “it“ “no“ “not“
“of“ “on“ “or“ “s“ “such“ “t“
“that“ “the“ “their“ “then“
“there“ “these“ “they“ “this“
“to“ “was“ “will“ “with“ ““
“www“
};
//~ Instance fields --------------------------------------------------------
/**/
/**
* stop word list
*/
private Hashtable stopTable;
//~ Constructors -----------------------------------------------------------
/**/
/**
* Builds an analyzer which removes words in {@link #STOP_WORDS}.
*/
public CJKAnalyzer()
{
stopTable = StopFilter.MakeStopSet(STOP_WORDS);
}
/**/
/**
* Builds an analyzer which removes words in the provided array.
*
* @param stopWords stop word array
*/
public CJKAnalyzer(string[] stopWords)
{
stopTable = StopFilter.MakeStopSet(stopWords);
}
//~ Methods ----------------------------------------------------------------
/**/
/**
* get token stream from input
*
* @param fieldName lucene field name
* @param reader input reader
* @return TokenStream
*/
public override TokenStream TokenStream(string fieldName TextReader reader)
{
TokenStream ts = new CJKTokenizer(reader);
return new StopFilter(ts stopTable);
//return new StopFilter(new CJKTokenizer(reader) stopTable);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-10-16 21:30 盘古分词\
目录 0 2016-11-04 20:09 盘古分词\盘古分词\
文件 1005 2016-10-16 21:30 盘古分词\盘古分词.sln
文件 65536 2016-11-15 23:28 盘古分词\盘古分词.v12.suo
文件 321 2016-10-19 15:04 盘古分词\盘古分词\App.config
目录 0 2016-10-17 18:05 盘古分词\盘古分词\bin\
目录 0 2016-10-17 21:59 盘古分词\盘古分词\bin\Debug\
目录 0 2016-10-16 21:46 盘古分词\盘古分词\bin\Debug\Dict\
文件 1001 2016-10-16 21:33 盘古分词\盘古分词\bin\Debug\Dict\ChsDoubleName1.txt
文件 1011 2016-10-16 21:33 盘古分词\盘古分词\bin\Debug\Dict\ChsDoubleName2.txt
文件 1006 2016-10-16 21:33 盘古分词\盘古分词\bin\Debug\Dict\ChsSingleName.txt
文件 3642500 2016-10-16 21:33 盘古分词\盘古分词\bin\Debug\Dict\Dict.dct
文件 251 2016-10-16 21:33 盘古分词\盘古分词\bin\Debug\Dict\Stopword.txt
文件 75361 2016-10-16 21:33 盘古分词\盘古分词\bin\Debug\Dict\Synonym.txt
文件 215 2016-10-16 21:33 盘古分词\盘古分词\bin\Debug\Dict\Wildcard.txt
文件 856064 2012-09-18 14:51 盘古分词\盘古分词\bin\Debug\Lucene.Net.dll
文件 78336 2012-09-18 15:30 盘古分词\盘古分词\bin\Debug\PanGu.dll
文件 6144 2012-09-18 15:30 盘古分词\盘古分词\bin\Debug\PanGu.Lucene.Analyzer.dll
文件 20992 2016-10-19 16:15 盘古分词\盘古分词\bin\Debug\盘古分词.exe
文件 321 2016-10-19 15:04 盘古分词\盘古分词\bin\Debug\盘古分词.exe.config
文件 52736 2016-10-19 16:15 盘古分词\盘古分词\bin\Debug\盘古分词.pdb
文件 24224 2016-11-15 23:08 盘古分词\盘古分词\bin\Debug\盘古分词.vshost.exe
文件 321 2016-10-19 15:04 盘古分词\盘古分词\bin\Debug\盘古分词.vshost.exe.config
文件 490 2013-03-18 17:00 盘古分词\盘古分词\bin\Debug\盘古分词.vshost.exe.manifest
目录 0 2016-10-17 18:05 盘古分词\盘古分词\bin\Release\
文件 2643 2016-10-16 21:37 盘古分词\盘古分词\CJKAnalyzer.cs
文件 9541 2016-10-16 21:37 盘古分词\盘古分词\CJKTokenizer.cs
目录 0 2016-10-16 21:33 盘古分词\盘古分词\Dict\
文件 1001 2016-10-16 21:33 盘古分词\盘古分词\Dict\ChsDoubleName1.txt
文件 1011 2016-10-16 21:33 盘古分词\盘古分词\Dict\ChsDoubleName2.txt
文件 1006 2016-10-16 21:33 盘古分词\盘古分词\Dict\ChsSingleName.txt
............此处省略42个文件信息
- 上一篇:个人防火墙 v3.0 专业版
- 下一篇:doudizhu.rar
相关资源
- USB.Over.Network.Server 注册机
- WPF USB 网络 串口 通信软件
- dotnet 写字板 实验 源代码 不好请要不
- B/S 网上订餐系统
- .net面试简历内容非常细致
- 教室管理系统.rar
- 小鸡快跑游戏.
- .net网站服装销售系统(MVC)
-
分别适用于.NET fr
amework 2.0和4.0的E - 汽车租赁系统............................
-
安装 .net fr
amework 4.0失败原因是KB9 - 德卡D8读写器关于读写感应卡的一些代
- halcon 测量助手
- 图片存储到数据库保存二进制文件并
- vs2005骑士巡游问题-分治法C
- 用Socket写的简易FTP服务器和客户端
- 企业销售管理信息系统(全套)
- 串口操作类(justinio)
- 基于Petri网的工作流(完整的原创源代
- 选择题自动考试系统
- 多线程实例:桌面智能弹球小游戏
- EXCEL文件转换成固定的格式的文本格式
- .net计件工资管理程序 啊
- powerdatagrid控件 源码
- SunnyUI.Net
- .NET WinForm 和 WPF 的UI界面库,收集整合
- Oxford Industries 采用 Microsoft.NET 平台实
- ssk皮肤
- dotnetfx_cleanup_tool .NET删除工具
- 土地信息管理系统
评论
共有 条评论