http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18410
On Wednesday, October 8, 2003, at 09:41 PM, Otis Gospodnetic wrote:
Answer to question comment: possibly because nouns start with a capital letter in German, so lowercasing may not be the right thing to do. This is a bit of a guess. Maybe the author will enlighten us. :)
Otis
--- [EMAIL PROTECTED] wrote:ehatcher 2003/10/08 17:08:52jakarta-lucene/src/java/org/apache/lucene/analysis/de/ GermanAnalyzer.java
Modified: src/java/org/apache/lucene/analysis/de GermanAnalyzer.java GermanStemmer.java Log: minor javadoc fixup and add question comment
Revision Changes Path 1.7 +3 -2
/home/cvs/jakarta-lucene/src/java/org/apache/lucene/analysis/de/ GermanAnalyzer.java,v
Index: GermanAnalyzer.java =================================================================== RCS file:
jakarta-lucene/src/java/org/apache/lucene/analysis/de/ GermanStemmer.javaretrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- GermanAnalyzer.java 29 Jan 2003 17:18:53 -0000 1.6 +++ GermanAnalyzer.java 9 Oct 2003 00:08:52 -0000 1.7 @@ -169,7 +169,8 @@ { TokenStream result = new StandardTokenizer( reader ); result = new StandardFilter( result ); - result = new StopFilter( result, stoptable ); + // shouldn't there be a lowercaser before stop word filtering? + result = new StopFilter( result, stoptable ); result = new GermanStemFilter( result, excltable ); return result; }
1.7 +1 -3
/home/cvs/jakarta-lucene/src/java/org/apache/lucene/analysis/de/ GermanStemmer.java,v
Index: GermanStemmer.java =================================================================== RCS file:
retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- GermanStemmer.java 18 Aug 2002 17:33:16 -0000 1.6 +++ GermanStemmer.java 9 Oct 2003 00:08:52 -0000 1.7 @@ -165,8 +165,6 @@ /** * Does some optimizations on the term. This optimisations are * contextual. - * - * @return The term with the optimizations applied. */ private void optimize( StringBuffer buffer ) {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
__________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]