lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r192989 - in /lucene/java/trunk/src/java/org/apache/lucene/analysis: WordlistLoader.java standard/StandardAnalyzer.java
Date Wed, 22 Jun 2005 19:59:04 GMT
Author: dnaber
Date: Wed Jun 22 12:59:03 2005
New Revision: 192989

URL: http://svn.apache.org/viewcvs?rev=192989&view=rev
Log:
small javadoc improvements

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/analysis/WordlistLoader.java
    lucene/java/trunk/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/analysis/WordlistLoader.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/analysis/WordlistLoader.java?rev=192989&r1=192988&r2=192989&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/analysis/WordlistLoader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/analysis/WordlistLoader.java Wed Jun 22 12:59:03
2005
@@ -37,7 +37,7 @@
    * Loads a text file and adds every line as an entry to a HashSet (omitting
    * leading and trailing whitespace). Every line of the file should contain only
    * one word. The words need to be in lowercase if you make use of an
-   * Analyzer which uses LowerCaseFilter (like GermanAnalyzer).
+   * Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
    *
    * @param wordfile File containing the wordlist
    * @return A HashSet with the file's words
@@ -56,6 +56,15 @@
     return result;
   }
 
+  /**
+   * Reads lines from a Reader and adds every line as an entry to a HashSet (omitting
+   * leading and trailing whitespace). Every line of the Reader should contain only
+   * one word. The words need to be in lowercase if you make use of an
+   * Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
+   *
+   * @param reader Reader containing the wordlist
+   * @return A HashSet with the reader's words
+   */
   public static HashSet getWordSet(Reader reader) throws IOException {
     HashSet result = new HashSet();
     BufferedReader br = null;

Modified: lucene/java/trunk/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java?rev=192989&r1=192988&r2=192989&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java Wed
Jun 22 12:59:03 2005
@@ -46,11 +46,16 @@
     stopSet = StopFilter.makeStopSet(stopWords);
   }
 
-  /** Builds an analyzer with the stop words from the given file. */
+  /** Builds an analyzer with the stop words from the given file.
+   * @see WordlistLoader#getWordSet(File)
+   */
   public StandardAnalyzer(File stopwords) throws IOException {
     stopSet = WordlistLoader.getWordSet(stopwords);
   }
 
+  /** Builds an analyzer with the stop words from the given reader.
+   * @see WordlistLoader#getWordSet(Reader)
+   */
   public StandardAnalyzer(Reader stopwords) throws IOException {
     stopSet = WordlistLoader.getWordSet(stopwords);
   }



Mime
View raw message