tianyalinfeng
tianyalinfeng · 共 355 篇文章
常见异常处理办法
1. getOutputStream() has already been called for this response jsp文件末尾添加两句话 out.clear(); out = pageContext.pushBody(); 2. java.lang.IncompatibleClassChangeError: Expecting non-static method 原因可能是静态方法没有用静态的方式去访问 3. java.lang.IllegalStateException 在response.sendRedirect("")方法后加return;语句即可,原因是在程序中两次调用…
2011-12-15 13:36 · Java · 评论(0)
关键词和关键句排名算法
关键词和关键句排名算法:加权无向图 the application of graphbased ranking algorithms to natural language texts consists of the following main steps: 1. Identify text units that best define the task at hand, and add them as vertices in the graph. 2. Identify relations that connect such text units, and use these relat…
打可执行jar包
1.myeclipse可直接打runnable jar 2.myeclipse打成普通jar包 在MANIFEST.MF添加 Main-Class: com.xxx.ClassName
2011-11-29 14:07 · Java · 评论(0)
实用网址收集
1.apache 所有项目 http://mirrors.directorymix.com/apache/ 2.鞋城 http://www.s.cn/ 3.solr 源码 http://lucene.apache.org/solr/version_control.html 4 solr jira https://issues.apache.org/jira/browse/SOLR-236 5solr wiki http://wiki.apache.org/solr/SimpleFacetParameters?highlight=%28facet%29 6自然语言处理 www.52nlp.cn…
2011-11-22 13:05 · Other · 评论(0)
Word
1. trauma ['trɔ:mə; 'trau-] n. [外科] 创伤(由心理创伤造成精神上的异常);外伤 2. collared ['kɔləd] adj. 有领圈的;成卷的 3. flycatcher ['flai,kætʃə] n. 捕蝇器;捕蝇草;霸鹟科(等于tyrant flycatcher) 4. dickie ['diki] n. (小孩的)围嘴;(女性衬衫)的胸襟 adj. 不可靠的;低劣的 5. eccentricity [,eksen'trisəti] n. 古怪;怪癖;[数] 离心率 6. mutual ['mju:tʃuəl, -tjuəl] adj. 共同的;…
2011-11-21 08:56 · English · 评论(0)
Phrase
1. question * It is out of question to arrive there on time. 准时到那里毫无问题。 * It is out of the question to rebuild the towers. 重建那座塔是不可能的。肯定建不了! * He is a good guy beyond question.He is just poor. 毫无疑问他是一个好人。他就是穷了点。 beyond question 是毫无疑问,无可争辩的意思 * It was to be expected that our present economic traumas…
2011-11-21 08:55 · English · 评论(0)
Idiom
1. A bad conscience is a snake in one's heart. 做贼心虚。 2. Honesty is the best policy. 诚实为最上策。 3. There is nothing new under the sun. 若要人不知,除非己莫为。 这句话语出《圣经·传道书》第1章第9节。 原文是:“What has been will be again, what has been done will be done again; there is nothing new under the sun. ” 意思就是“已有的事,后必再有;已行的事,后必再…
2011-11-18 08:36 · English · 评论(0)
中文数字unicode
一 七 三 九 二 五 八 六 四 零 \u4e00\u4e03\u4e09\u4e5d\u4e8c\u4e94\u516b\u516d\u56db\u96f6
2011-11-17 11:10 · Java · 评论(0)
中文和unicode互相转换
package unicode; import java.util.regex.Matcher; import java.util.regex.Pattern; public class CodeChange { /* * 把中文字符串转换为十六进制Unicode编码字符串 */ public static String stringToUnicode(String s) { String str = ""; for (int i = 0; i < s.length(); i++) { int ch = (int) s.charAt(i); if (ch > 255) str += " \\…
2011-11-16 16:09 · Java · 评论(0)
Famous quote
1. Fear not that the life shall come to an end, but rather fear that it shall never have a beginning. -- J.H. Newman 不要害怕你的生活将要结束,应该担心你的生活永远不会真正开始。 -- 纽曼 2. I would rather be certain of a good result than hopeful of a great one. -Warren Buffett 与其两鸟在林,还不如一鸟在手。 3. Ignorance is the curse of God, Know…
2011-11-16 12:22 · English · 评论(0)
分词算法和模型
维特比算法(Viterbi) 隐马尔可夫模型(Hidden Markov model, HMM) 最大熵模型(Maximum Entropy, ME) 支持向量机(SVM) 线性链条件随机场模型(CRF) 最大间隔马尔可夫网络模型 遗传算法 N-gram模型 有监督机器学习 HMM属于产生式模型(基于联合概率分布),CRF和ME属于判别式模型(基于条件概率)
2011-11-15 15:56 · Nlp · 评论(0)
未登录词
分类 1.复合词和派生词 2.略缩语(如“世博会(世界博览会)”、“奥运会(奥林匹克运动会)”) 3.专有名词(也称命名实体,子分类:人名、地名和机构名) 4.数字类复合词(数字和汉字构成,如日期、地址、时间等) 识别 1.新涌现的通用词或专业术语等可预期的未登录词 2.专有名词等不可预期的未登录词
2011-11-15 14:56 · Nlp · 评论(0)
中文分词评价指标
准确率(Precision)和召回率(Recall) Precision = 正确切分出的词的数目/切分出的词的总数 Recall = 正确切分出的词的数目/应切分出的词的总数 综合性能指标F-measure Fβ = (β2 + 1)*Precision*Recall/(β2*Precision + Recall) β为权重因子,如果将准确率和召回率同等看待,取β = 1,就得到最常用的F1-measure F1 = 2*Precisiton*Recall/(Precision+Recall) 未登录词召回率(R_OOV)和词典中词的召回率(R_IV) R_OOV = 正确切分出的未登录词…
2011-11-15 12:44 · Nlp · 评论(0)
One sentence per day
2011-11-05 His career was not noticeably hindered by the fact that he had never been to college. 他从没有上过大学,但他的事业并没有因此而受到明显的妨碍。 2011-11-07 The storm began to abate late in the afternoon. 傍晚时分风暴开始减弱。 2011-11-08 I'm under a lot of pressure. 我压力很大。 Faults are thick where love is thin. 一朝情意淡,样样不顺眼。 2011-…
2011-11-15 10:03 · English · 评论(0)