ITeye博客

2010 年文章归档

共 95 篇文章

commands

yum install tftp-server 安装tftp服务器

2010-09-27 21:56 · 网络设备

msyql的select语法

13.2.7. SELECT语法 13.2.7.1. JOIN语法 13.2.7.2. UNION语法 SELECT select_expr, ... , ... ] , ...] row_count | row_count OFFSET offset}] ] SELECT用于恢复从一个或多个表中选择的行,并可以加入UNION语句和子查询。请参见13.2.7.2节,“UNION语法 ”和13.2.8节,“Subquery语法”。 · 每个select_expr都指示一个您想要恢复的列。 · table_references指示行从哪个表或哪些表中被恢复。在13.2.7.1节,“JOIN语法”…

2010-09-13 22:52 · jade

zotero与word集成

Manually Installing the Zotero Word Plugin for Windows To install the plugin by hand, first download the plugin: * Install the Word Plugin for Windows for Zotero 2.0 Once the plugin (distributed as a Firefox extension) is installed into Firefox, you can find a copy of the Zotero.dot file in the ext…

2010-09-11 08:50 · jade

Java陷阱之assert关键字

Java陷阱之assert关键字 一、概述 在C和C++语言中都有assert关键,表示断言。 在Java中,同样也有assert关键字,表示断言,用法和含义都差不多。 二、语法 在Java中,assert关键字是从JAVA SE 1.4 引入的,为了避免和老版本的Java代码中使用了assert关键字导致错误,Java在执行的时候默认是不启动断言检查的(这个时候,所有的断言语句都将忽略!),如果要开启断言检查,则需要用开关-enableassertions或-ea来开启。 assert关键字语法很简单,有两种用法: 1、assert <boolean表达式> 如果<boolean表达式>为…

2010-09-04 14:48 · lucene

standford vs opennlp

重新训练的模型主要针对短角色,即词串数不大于3的角色,这是因为考虑到在实际环境下一般人难以输入长句,一般口语化的句子其实都比较短。手工测试训练后的效果至少不比之前的模型差。然而,使用stanford parser为基础的语义分析有一个致命的缺点:分析严重受制于stanford parser的结果,而stanford parser是将分词、词性标注都集成在一起,难以使用第三方的分词器和词性标注器,从而导致parser结果不可控。因而我的想法是放弃使用stanford parser,而采用shallow parser。shallow parser如果是在gold pos前提下的准确率要高于sta…

2010-09-04 06:59 · lucene

Lucene Payload 的研究与应用

http://www.ibm.com/developerworks/cn/opensource/os-cn-lucene-pl/index.html 2008 年 11 月 06 日 Payload (元数据) 诞生于 Lucene 的2.2 版本,它是在 Lucene 2.1 索引文件格式的基础上扩展而来,提供了一种可以灵活配置的高级索引技术,在某些特定应用场景下能优化基于 Lucene 构建的应用的搜索性能。本文重点研究了 Payload 的实现原理、索引结构的变化、接口 API ,在本文的最后举例说明了 Payload 是如何帮助改善搜索体验的。 Lucene 是最初是由 Dougla…

2010-09-02 21:51 · lucene

standardtokenizer

/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); yo…

2010-09-02 14:50 · lucene

attributesource

package org.apache.lucene.util; /** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License,…

2010-09-02 14:45 · lucene

token

package org.apache.lucene.analysis; import org.apache.lucene.analysis.tokenattributes.OffsetAttribute; import org.apache.lucene.analysis.tokenattributes.FlagsAttribute; import org.apache.lucene.analysis.tokenattributes.PayloadAttribute; import org.apache.lucene.analysis.tokenattributes.PositionIncr…

2010-09-02 14:37 · lucene

Lucene 3.0 分词 IKAnalyzer

最近lucene已经更新到lucene 3.0版本了 2.X版本的一些用法已经彻底不在支持了。 下面的例子主要是介绍中文分词器IKAnalyzer的使用和Lucene高亮显示。 lucene 3.x版本中有些2.x方法已经完全被剔除了,这里会捎带一下3.x的用法,当然我这里用的还是2.X的版本。 lucene自带的分词方式对中文分词十分的不友好,基本上可以用惨不忍睹来形容,所以这里推荐使用IKAnalyzer进行中文分词。 IKAnalyzer分词器是一个非常优秀的中文分词器。 下面是官方文档上的介绍 采用了特有的“正向迭代最细粒度切分算法“,具有60万字/秒的高速处理能力。 采用了多子处理…

2010-09-02 12:46 · postagger

改写lucene的Analyzer,添加自己的中文分词系统的方法

/** *作者:夺天策 百度空间名:刹那剑欣 *转载请说明出处! */ 这几天完成了我的中文分词算法,就着手把它加入到lucene中去,google,baidu一下,倒是有一些人写的中文分词,和加入的方法,但是那些都是符合他们自己写的分词算法的添加方法,没有讲到lucene的添加接口,没有将原理,于是就自己研究了下咯,看了下lucene的源代码,总结出方法,希望对现在还不知道的朋友会有帮助!! 源代码中主要分词器都在analysis 这个包中,在contrib中还有一些第三方的分词器,有一个中文分词器ChineseAnalyzer.java,但是他只是实现了二分(没两个汉字算作一个Token…

2010-09-02 12:44 · lucene

Apache Lucene - Index File Formats

http://lucene.apache.org/java/3_0_0/fileformats.html#Index File Formats Index File Formats Definitions Inverted Indexing Types of Fields Segments Document Numbers Overview File Naming Summary of File Extensions Primitive Types Byte UInt32 Uint64 VInt Chars String Compound Types Map<String,String> P…

2010-09-01 10:34 · lucene

[zz]学习lucene应该多看源代码

最近在为星网将要上线的商城系统开发搜索功能,要求使用lucene和数据库。由于lucene是完全开源的,所以对于学习与使用lucene的人,这么好的源代码资源一定要看并且利用,只有多看源代码,自身的能力才会提高,lucene使用起来,效率也会更高。 从一个小例子中,可以看出看源代码的好处。 商品搜索时,肯定要使用核心包下的org.apache.lucene.search.Searcher类,而这个类的search()方法有八个,其中有三个是abstract类型,被searcher的子类IndexSearcher所实现,如果只看javadoc的话,可以看到这八个方法分别是: Java代码 pu…

2010-08-31 14:45 · lucene

university 4/n (45)

chapter? Vocabulary use in classroom teaching and textbooks ?.?Introduction The description of vocabulary use in university contexts is an essential prerequi- site to the development of effective teaching materials and approaches.There are many important research questions about word use in univers…

2010-08-24 07:57 · postagger

university 3/n

Chapter 1.Introduction diagnostic tools for the evaluation of exam prompts,using the corpus analyses as a baseline. In the first stage of the project,we constructed the T2K-SWAL Corpus,which was designed to represent both spoken and written university registers,as well as the major academic discipl…

2010-08-24 07:55 · postagger

university 2/n

Chapter 1.Introduction of register,and register is the‘expression-plane’of genre;register is in turn the ‘content-plane’of language.Lee(2001)surveys the use of these terms,providing one of the most comprehensive discussions of how they have been used in previous research(as well as terms like text …

2010-08-24 07:54 · jade

university 1/n

chapter? Introduction ?.?The student perspective:Language in the university Students who are beginning university studies face a bewildering range of obstacles and adjustments,and many of these difficulties involve learning to use language in new ways.The high school experiences of English-educated…

2010-08-24 07:53 · jade

How to make indexing faster

Here are some things to try to speed up the indexing speed of your Lucene application. Please see ImproveSearchingSpeed for how to speed up searching. Be sure you really need to speed things up. Many of the ideas here are simple to try, but others will necessarily add some complexity to your applic…

2010-08-23 09:02 · lucene

Sun Java Bugs that affect lucene

Sometimes Lucene runs amok of bugs in Sun's Java implementation. In certain cases we whittle it down to a small test case, open an issue with Sun, and hopefully Sun fixes it. In other cases we know the bug is in the JRE but we haven't narrowed it enough to open a bug with Sun. Sometimes we can work…

2010-08-23 08:59 · jade

Snowball分词

using System; using Lucene.Net.Analysis; using Lucene.Net.Analysis.Standard; using SF.Snowball.Ext; using System.Collections.Generic; using System.Collections; using OpenNLP.Tools.PosTagger; namespace Lucene.Net.Analysis.Snowball { //词汇的实体类,包括两个属性 public class myEwordEntity { public string txtWord;…

2010-08-22 13:07 · jade