Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 9305 invoked from network); 11 May 2009 13:48:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 May 2009 13:48:11 -0000 Received: (qmail 25603 invoked by uid 500); 11 May 2009 13:48:10 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 25502 invoked by uid 500); 11 May 2009 13:48:10 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 25469 invoked by uid 99); 11 May 2009 13:48:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 May 2009 13:48:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 May 2009 13:48:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9D533234C04B for ; Mon, 11 May 2009 06:47:45 -0700 (PDT) Message-ID: <1526869688.1242049665643.JavaMail.jira@brutus> Date: Mon, 11 May 2009 06:47:45 -0700 (PDT) From: "Michael McCandless (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-1629) contrib intelligent Analyzer for Chinese In-Reply-To: <445685380.1241412690530.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1629?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D127= 08032#action_12708032 ]=20 Michael McCandless commented on LUCENE-1629: -------------------------------------------- I do have the file, but at runtime the JRE cannot locate it using Class.get= ResourceAsStream(). Are you able to run "ant test -Dtestcase=3DTestSmartChineseAnalyzer" from t= he command line in contrib/analzyers successfully? > contrib intelligent Analyzer for Chinese > ---------------------------------------- > > Key: LUCENE-1629 > URL: https://issues.apache.org/jira/browse/LUCENE-1629 > Project: Lucene - Java > Issue Type: Improvement > Components: contrib/analyzers > Affects Versions: 2.4.1 > Environment: for java 1.5 or higher, lucene 2.4.1 > Reporter: Xiaoping Gao > Assignee: Michael McCandless > Fix For: 2.9 > > Attachments: analysis-data.zip, bigramdict.mem, coredict.mem, LUC= ENE-1629-java1.4.patch > > > I wrote a Analyzer for apache lucene for analyzing sentences in Chinese l= anguage. it's called "imdict-chinese-analyzer", the project on google code = is here: http://code.google.com/p/imdict-chinese-analyzer/ > In Chinese, "=E6=88=91=E6=98=AF=E4=B8=AD=E5=9B=BD=E4=BA=BA"(I am Chinese)= , should be tokenized as "=E6=88=91"(I) "=E6=98=AF"(am) "=E4=B8=AD=E5= =9B=BD=E4=BA=BA"(Chinese), not "=E6=88=91" "=E6=98=AF=E4=B8=AD" "=E5=9B=BD= =E4=BA=BA". So the analyzer must handle each sentence properly, or there wi= ll be mis-understandings everywhere in the index constructed by Lucene, and= the accuracy of the search engine will be affected seriously! > Although there are two analyzer packages in apache repository which can h= andle Chinese: ChineseAnalyzer and CJKAnalyzer, they take each character or= every two adjoining characters as a single word, this is obviously not tru= e in reality, also this strategy will increase the index size and hurt the = performance baddly. > The algorithm of imdict-chinese-analyzer is based on Hidden Markov Model = (HMM), so it can tokenize chinese sentence in a really intelligent way. Tok= enizaion accuracy of this model is above 90% according to the paper "HHMM-b= ased Chinese Lexical analyzer ICTCLAL" while other analyzer's is about 60%. > As imdict-chinese-analyzer is a really fast and intelligent. I want to co= ntribute it to the apache lucene repository. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org