You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by dn...@apache.org on 2004/08/04 20:12:18 UTC

cvs commit: jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/fr FrenchAnalyzer.java

dnaber      2004/08/04 11:12:18

  Modified:    contributions/analyzers/src/java/org/apache/lucene/analysis/fr
                        FrenchAnalyzer.java
  Log:
  add "throws IOException" so that these analyzer compiles against Lucene 1.4 -- please tell me if I broke the encoding
  of the special characters
  
  Revision  Changes    Path
  1.6       +8 -5      jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/fr/FrenchAnalyzer.java
  
  Index: FrenchAnalyzer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/fr/FrenchAnalyzer.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- FrenchAnalyzer.java	12 Mar 2004 15:52:58 -0000	1.5
  +++ FrenchAnalyzer.java	4 Aug 2004 18:12:18 -0000	1.6
  @@ -63,6 +63,7 @@
   import org.apache.lucene.analysis.standard.StandardTokenizer;
   
   import java.io.File;
  +import java.io.IOException;
   import java.io.Reader;
   import java.util.HashSet;
   import java.util.Hashtable;
  @@ -142,9 +143,10 @@
   
     /**
      * Builds an analyzer with the given stop words.
  +   * @throws IOException
      */
  -  public FrenchAnalyzer(File stopwords) {
  -    stoptable = new HashSet(WordlistLoader.getWordtable(stopwords).keySet());
  +  public FrenchAnalyzer(File stopwords) throws IOException {
  +    stoptable = new HashSet(WordlistLoader.getWordSet(stopwords));
     }
   
     /**
  @@ -163,9 +165,10 @@
   
     /**
      * Builds an exclusionlist from the words contained in the given file.
  +   * @throws IOException
      */
  -  public void setStemExclusionTable(File exclusionlist) {
  -    excltable = new HashSet(WordlistLoader.getWordtable(exclusionlist).keySet());
  +  public void setStemExclusionTable(File exclusionlist) throws IOException {
  +    excltable = new HashSet(WordlistLoader.getWordSet(exclusionlist));
     }
   
     /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org