摘要: 1. Do in-domain search and out-domain search start do things in one aspect and become the expert in this aspect if I wanna do something in CS, see how... 阅读全文
posted @ 2015-09-06 18:41 sumile123 阅读(147) 评论(0) 推荐(0) 编辑
摘要: If you need to change dictionary keys, it can be solved with the help of another dictionary with the same keys. Iterate this one and change this. 阅读全文
posted @ 2015-08-23 17:37 sumile123 阅读(210) 评论(0) 推荐(0) 编辑
摘要: http://www.dotnetperls.com/splitPresume that line is a string:1. line.split('\t') line.split(' ')2. Regex.split(line,": "); 阅读全文
posted @ 2015-08-23 17:34 sumile123 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 注意代码里面用变量控制分类的写法 Uni Bi Tri而且开始想的是两层循环,大循环找词,小循环再每行数数,这样会太慢了所以借鉴源码的思路,是通过一个大循环,在dictionary中记录每个词出现多少词,同时用find标记这一句有没有标注1或0wordpos1相当于记录的是每个词的n11,而对于每... 阅读全文
posted @ 2015-08-16 22:38 sumile123 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1. NLP domainNRC Emotion Lexicon:http://saifmohammad.com/WebPages/lexicons.html 阅读全文
posted @ 2015-08-14 19:16 sumile123 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1. in c++ environment 1 using namespace System; 2 using namespace System::IO; 3 int main() 4 { 5 try 6 { 7 // Create an instance of Stream... 阅读全文
posted @ 2015-08-12 21:40 sumile123 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 用sublime 21.安装Sublime Package Control: 在Sublime Text 2上用Ctrl+~打开控制台并在里面输入以下代码,Sublime Text 2就会自动安装Package Control。import urllib2,os; pf='Package Contr... 阅读全文
posted @ 2015-08-11 20:41 sumile123 阅读(717) 评论(0) 推荐(0) 编辑
摘要: http://blogs.msdn.com/b/seealso/archive/2011/01/25/using-the-command-window-in-visual-studio-2010.aspx 阅读全文
posted @ 2015-08-07 08:09 sumile123 阅读(143) 评论(0) 推荐(0) 编辑