Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÖпÆÔº·Ö´Ê¹¤¾ßimdict chinese analyzerѧϰ java·Ö´Ê

ÏÂÔØÁ´½Óhttp://ictclas.org/Down_OpenSrc.asp
¼òµ¥½éÉÜ£º
 imdict-chinese-analyzerÊÇ imdictÖÇÄܴʵäµÄÖÇÄÜÖÐÎÄ·Ö´ÊÄ£¿é£¬×÷Õ߸ßСƽ£¬Ëã·¨»ùÓÚÒþÂí
¶û¿Æ·òÄ£ÐÍ(Hidden Markov Model, HMM)£¬ÊÇÖйú¿ÆѧԺ¼ÆËã¼¼ÊõÑо¿ËùµÄictclasÖÐÎķִʳÌÐò
µÄÖØÐÂʵÏÖ£¨»ùÓÚJava£©£¬¿ÉÒÔÖ±½ÓΪluceneËÑË÷ÒýÇæÌṩÖÐÎÄ·Ö´ÊÖ§³Ö¡£
Ó¦Óãº
ϵ½µÄѹËõ°ü½âѹºó¾ÍÊÇÒ»¸öjava¹¤³Ì£¬eclipseÖ±½Óµ¼Èë¼´¿É£¬µ«ÓÉÓÚÆ俪·¢µÄ»·¾³ÊÇUTF8ËùÒÔ
Òª½«eclipseµÄ¹¤×÷¿Õ¼äµÄ±àÂëÒ²ÉèÖÃΪutf8£¬test°üÀïÃæµÄAnalyzerTest¾ÍÊÇÆäÓ÷¨£¬¿´ÁËÒÔºó
¾Í¿ÉÒÔÖ±½ÓÓÃÁË
¹¦ÄÜ£ºÖÐÎÄ·Ö´Ê¡¢Í£Ö¹´Ê¹ýÂË
Óŵ㣺¿ªÔ´£¬·Ö´ÊËٶȿ죬ЧÂʸß
ȱµã£º²»Ö§³Ö×Ô¼ºÌí¼Ó´Ê¿â£¬²»Ö§³Ö´ÊÐÔ±ê×¢£¨¿ª·¢ÈËÔ±×Ô¼ºËµÊÇΪÁËÌá¸ßËٶȣ©£¬dataÎļþ¼Ð½ö
×Ô´øÁËÁ½¸ö×ÖµäcoredictºËÐÄ×ֵ䡢bigramdict´Ê¹Øϵ×ֵ䣬ÕâÊÇÁ½¸ö×îÖØÒªµÄ´Êµä£¬Ã»ÓеØÃûºÍ
ÈËÃûµÄ´Êµä£¬ËùÒÔҪʶ±ðÈËÃûµØÃû±È½ÏÂé·³£¬¾Ý˵ҪÓòã´Îhmm£¬ÏÈ´Ö·ÖÔÚϸ·Ö¡£
ÉîÈëѧϰ£ºÖ÷ÀàÊÇnet.imdict.analysis.chineseÖеÄChineseAnalyzer.javaËü¼Ì³ÐÁËluceneµÄ
AnalyzerÀ࣬ÓÐÁ½¸ö¹¹Ôì·½·¨£ºpublic ChineseAnalyzer()¡¢public ChineseAnalyzer
(Set<String> stopWords)µÚ¶þ¸ö¹¹Ôì·½·¨Ö§³ÖÍ£Óôʣ¬×îÖØÒªµÄÊÇtokenStreamº¯Êý£¬ËüÓÃÁË
SentenceTokenizerºÍnew WordTokenizer£¬Ç°Ò»¸öÊǽ«ÎÄÕ·ֳɾä×Ó£¬ºóÒ»¸öÊǽ«¾ä×ӷֳɵ¥´Ê£¬
µ¥´ÊºÍ¾ä×Ó¶¼ÊÇÓÃLuceneµÄToken£¨´Ê£©µÄÀà´æ´¢µÄ£¬£¨TokenÊÇÒ»¸ö³éÏóÀ࣬TokenStreamÊÇToken
ÀàµÄ×ÓÀ࣬µ«Ò²ÊÇÒ»¸ö³éÏóÀ࣬TokenizerºÍTokenFilterÔòÊÇTokenStreamµÄ¾ßÌåʵÏÖ£¬ËûÃÇʵÏÖ
ÁËTokenStreamµÄnext()·½·¨£¬TokenizerµÄnext·½·¨·µ»ØµÄÊÇԭʼµÄ¡¢ÇзֳöÀ´µÄ´Ê£¬¶ø
TokenFilter·½·¨·µ»ØµÄÊÇÒ»¸ö¾­¹ý¹ýÂ˵ĴÊÌõ£¬ËûÃǽáºÏÆðÀ´ÐγÉLucene·ÖÎöÆ÷µÄºËÐĽṹ£©Èç
Token token = new Token()£¬È»ºóͨ¹ýtoken.reinit(buffer.toString(), tokenStart,
tokenEnd, "sentence");ÖмäÁ½¸ö²ÎÊýÊÇToken´æ´¢µÄ×Ö·û´®µÄÆðֹλÖã¬ÒÔ0¿ªÊ¼¼ÆÊý£¬ÒýÓÃ
tokenÖÐ×Ö·û´®µÄº¯ÊýÊÇtoken.term()£¬ÕæÕýµ÷Ó÷ִʺËÐÄËã·¨µÄWordSegmenterµÄ
segmentSentence·½·¨¶Ô¾ä×Ó½øÐзִʣ¬ÔÚWordTokenizerÀàÖе÷ÓÃËüµÃµ½·Ö´Ê½á¹û¡£ÔÚÍùϲãµÄ´ú
ÂëÎÒ¾Íû¿´ÁË¡£
Á½¸ö¸Ä¶¯£º
£¨1£©ChineseAnalyzerÖ»ÄܶÔÎļþ½øÐзִʣ¬ÈçºÎ¶ÔÒ»¸ö×Ö·û´®½øÐзִʣ¬¸Ä¶¯ÈçÏÂ
/*  TokenStream ts = ca.tokenStream("sentence", new InputStreamRe


Ïà¹ØÎĵµ£º

JavaÖм¯ºÏÈÝÆ÷ÀàListºÍSetµÄÓ÷¨

ListµÄÓ÷¨
List°üÀ¨List½Ó¿ÚÒÔ¼°List½Ó¿ÚµÄËùÓÐʵÏÖÀà¡£ÒòΪList½Ó¿ÚʵÏÖÁËCollection½Ó¿Ú£¬ËùÒÔList½Ó¿ÚÓµÓÐCollection½Ó¿ÚÌṩµÄËùÓг£Ó÷½·¨£¬ÓÖÒòΪListÊÇÁбíÀàÐÍ£¬ËùÒÔList½Ó¿Ú»¹ÌṩÁËһЩÊʺÏÓÚ×ÔÉíµÄ³£Ó÷½·¨£¬Èç±í1Ëùʾ¡£
±í1  List½Ó¿Ú¶¨ÒåµÄ³£Ó÷½·¨¼°¹¦ÄÜ
´Ó±í1¿ÉÒÔ¿´³ö£¬List½Ó¿ÚÌṩµÄÊʺÏÓÚ×ÔÉíµÄ ......

javaÖеÄÏÝÚ壬Äã×¢ÒâÁËô£¿

´ð°¸Òþ²ØÁË£¬Ctrl+AÏÔʾ¡£½¨ÒéÏÈ˼¿¼Ò»Ï½á¹û£¬È»ºóÔËÐдúÂëÊÔÑé¡£Ò²ÐíÄã»á»ÐÈ»´óÎò¡£
1¡¢ÕÒÆæÊý£º
view plaincopy to clipboardprint?
public static boolean isOdd(int i){
return i % 2 == 1;
}
public static boolean isOdd(int i){
return i % 2 == 1;
}
ÉÏÃæµÄ·½·¨ÕæµÄÄÜÕÒµ ......

ImageMagick for java ʹÓÃJmagick´¦Àí¸ßÖÊÁ¿Í¼Æ¬

ÔÚ×öpdfÎĵµ×ª³ÉjpgµÄʱºò£¬·¢ÏÖÁËJmagickµÄ´´½¨¸ßÖÊÁ¿µÄͼƬµÄÒ»¸öjavaÀà¿â,×Ô¼ºÒÔǰʹÓÃÁíÍâµÄÒ»¸öÀà¿â,¸Ð¾õÕâ¸ö¸üºÃµã,¾ÍÊÔ×ÅÓÃÁËÏÂ,¸Ð¾õ²»´í
1.ʹÓõÄwindowsϵÄjmagick-win-6.3.9-Q16.zip µØÖ·ÊÇ£ºhttp://downloads.jmagick.org/6.3.9/
2.doc¶ÔÓ¦µÄapiµØÖ·£ºhttp://downloads.jmagick.org/jmagick-doc/
3.°²×°Ima ......

java ½Ó¿ÚÓë³éÏóÀàµÄÇø±ð£¨×ª£©

Ò»¸öÈí¼þÉè¼ÆµÄºÃ»µ£¬ÎÒÏëºÜ´ó³Ì¶ÈÉÏÈ¡¾öÓÚËüµÄÕûÌå¼Ü¹¹£¬¶øÕâ¸öÕûÌå¼Ü¹¹Æäʵ¾ÍÊÇÄã¶ÔÕû¸öºê¹ÛÉÌÒµÒµÎñµÄ³éÏó¿ò¼Ü£¬µ±´ú±íÒµÎñÂß¼­µÄ¸ß²ã³éÏó²ã½á¹¹ ºÏÀíʱ£¬Äãµ×²ãµÄ¾ßÌåʵÏÖÐèÒª¿¼Âǵľͽö½öÊÇһЩËã·¨ºÍһЩ¾ßÌåµÄÒµÎñʵÏÖÁË¡£µ±ÄãÐèÒªÔÙ¿ª·¢ÁíÒ»¸öÏà½üµÄÏîĿʱ£¬ÄãÒÔÇ°µÄ³éÏó²ã˵²»¶¨»¹¿ÉÒÔÔÙ´ÎÀûÓà ÄØ£¬Ãæ¶Ô¶ÔÏóµÄÉè¼Æ ......

ÔÚJava³ÌÐòÖнػñ¿ØÖÆ̨Êä³ö


ÕâƪÎÄÕÂÎÒÊÇ´ÓIBMÍøÕ¾¿´µ½µÄ£¬ºÜÓÐÓ㬾ÍתÌû¹ýÀ´ÁË£¬Ô­ÎÄÍøÖ·ÊÇhttp://www.ibm.com/developerworks/cn/java/l-console/index.html£¬µ«ÊÇ´ò¿ªµÄʱºòÌرðÂý£¬¾ÍÔÚÕâÀïÕ³Ìùһϡ£
ÔÚJava¿ª·¢ÖУ¬¿ØÖÆ̨Êä³öÈÔÊÇÒ»¸öÖØÒªµÄ¹¤¾ß£¬µ«Ä¬ÈϵĿØÖÆ̨Êä³öÓÐן÷ÖÖ¸÷ÑùµÄ¾ÖÏÞ¡£±¾ÎĽéÉÜÈçºÎÓÃJava¹ÜµÀÁ÷½ØÈ¡¿ØÖÆ̨Êä³ö£¬·ÖÎö¹ÜµÀÁ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ