04 2013 档案
摘要:vim 查找字符串出现的次数在所有行中查找 字符串 出现的次数:%s/字符串/&/gn在m和n行之间查找 字符串 出现的次数:m,ns/字符串/&/gn
阅读全文
摘要:java get line number and file namepublic class LineNo { public static int getLineNumber() { return Thread.currentThread().getStackTrace()[2].getLineNumber(); } public static String getFileName() { return Thread.currentThread().getStackTrace()[2].getFileName(); } public static void main(String arg...
阅读全文
摘要:從一個簡單的例子談談package與import機制基本原則:為什麼需要將Java文件和類文件切實安置到其所歸屬之Package所對應的相對路徑下。為什麼要這樣做呢?如果你在程序中,用到打包命令package,並且直接編譯和執行該程序。例如:以下面程序為例:package a.b.c;public class hello{ public static void main(String args[]) { System.out.println("Hello the world!"); }}此程序可以編譯通過,但是執行時,卻提示以下錯誤!david@Wade:~/temp/te
阅读全文
摘要:分词|词性标注|句法分析|时间表达式识别|指代消解|关键词提取 functions are available via web service分词|词性标注|实体名识别 functions are available via clidavid@Wade:~/temp/FudanNLP$ cat scripts.cmd echo "分词实例"java -classpath fudannlp.jar:lib/commons-cli-1.2.jar:lib/trove.jar: edu.fudan.nlp.cn.tag.CWSTagger -s models/seg.m &quo
阅读全文
摘要:http://www.docin.com/p-240321933.htmlhttp://www-nlp.stanford.edu/links/statnlp.htmlhttp://www.cnblogs.com/darry/archive/2012/01/09/2317453.htmlhttp://www.cnblogs.com/darry/archive/2012/04/08/2437588.htmlhttp://www-a2k.is.tokushima-u.ac.jp/member/kita/NLP/nlp_tools.htmlhttp://www-nlp.stanford.edu/lin
阅读全文
摘要:see the following reference:http://nltk.org/_modules/nltk/corpus/reader/sinica_treebank.htmlhttp://nltk.org/_modules/nltk/misc/babelfish.htmlhttp://nltk.org/book/ch08.html 8.6Grammar Developmentcreated bysinica.edu.tw
阅读全文
摘要:I have already wanna use fudanNLP , while in testing it's result , it comes out errors that I can't solve .Finally, my java knowledge should improve about classpath :linux和Windows下Java命令行的classpathin linux splitter should be : , but not ;this is how I finally run at linux:$mv FudanNLP\ Funct
阅读全文
摘要:from multiprocessing import Pooldef f(x): print 'cal ', x return x * xdef callback1(arg): print arg print 'result ready, in callback'if __name__ == '__main__': pool = Pool (processes =4) result = pool.apply_async(f, [10], callback=callback1) #result = pool.apply_async(f, [10]
阅读全文
摘要:install ImageMagick download rpm package fromhttp://www.imagemagick.org/script/binary-releases.php#unix but lots of dependencies. how to solve, one way is apt-get install imagemagick , one is install smart
阅读全文
摘要:xoff3=509if [ "$xoff3" -gt 500 ] then echo "yoff3 > 500"fisuch a heavy burden
阅读全文
摘要:#!/bin/bashimage="/media/C/1.jpg"result="/media/C/12.jpg"width=`convert $image -format "%w" info:`height=`convert $image -format "%h" info:`#Now convert your percentages to pixels as variables, for examplexoff=`convert xc: -format "%[fx:$width*10/100]&quo
阅读全文
摘要:jade-->htmlhttps://github.com/visionmedia/jade#jade1jade(1)Usage: jade [options] [dir|file ...]Options: -h, --help output usage information -V, --version output the version number -o, --obj <str> javascript options object -O, --out <dir> output the compiled html to <dir> -p, ...
阅读全文
摘要:update'$set': { "options":{ "A":"choice A stands for", "B":"choice B stands for", "C":"choice C stands for", "D":"choice D stands for", } }find$and:[{html:/答案/},{html:/回复/}]$or:[{html:/答案/},{title:/测试/}
阅读全文