Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@apache.org Received: (qmail 43503 invoked from network); 14 Feb 2002 01:18:02 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 14 Feb 2002 01:18:02 -0000 Received: (qmail 25567 invoked by uid 97); 14 Feb 2002 01:18:09 -0000 Delivered-To: qmlist-jakarta-archive-lucene-dev@jakarta.apache.org Received: (qmail 25551 invoked by uid 97); 14 Feb 2002 01:18:09 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 25540 invoked from network); 14 Feb 2002 01:18:08 -0000 Message-ID: <20020214011804.22005.qmail@web12704.mail.yahoo.com> Date: Wed, 13 Feb 2002 17:18:04 -0800 (PST) From: Otis Gospodnetic Subject: Re: Bug in german stemmer ? To: lucene-dev@jakarta.apache.org Cc: gerhard.schwarz@fpg.de, Bernhard.Messer@intrafind.de In-Reply-To: <003e01c198ef$bc0d04a0$dd0aa8c0@Spock> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This email sounds right. substCount variable always increases and never gets reset to zero and it seems that it should be reset before every substitution, so that its value reflects the number of characters substituted in each token. I will commit the fix now. Gerhard, please correct me if I'm wrong. Thanks, Otis --- Bernhard Messer wrote: > Hi all, > > I am using the lucene German Stemmer/Analyzer. There seems to be a > bug > within the GermanStemmer class. As far as i understand the algorithm > the > count variable "substCount" > should be set to 0 before processing the next token. > In the current implementation, the stemmed result will differ for the > same > terms after a while. > The easiest solution would be to reset that counter variable in the > method: > "private StringBuffer substitute( StringBuffer buffer )" . > > best regards > Bernhard > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: