lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject svn commit: r489847 - in /lucene/java/trunk/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram: EdgeNGramTokenizer.java NGramTokenizer.java
Date Sat, 23 Dec 2006 03:36:34 GMT
Author: otis
Date: Fri Dec 22 19:36:34 2006
New Revision: 489847

URL: http://svn.apache.org/viewvc?view=rev&rev=489847
Log:
- Javadocs

Modified:
    lucene/java/trunk/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.java
    lucene/java/trunk/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/NGramTokenizer.java

Modified: lucene/java/trunk/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.java?view=diff&rev=489847&r1=489846&r2=489847
==============================================================================
--- lucene/java/trunk/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.java
(original)
+++ lucene/java/trunk/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.java
Fri Dec 22 19:36:34 2006
@@ -24,7 +24,7 @@
 import java.io.Reader;
 
 /**
- * Tokenizes the input into n-grams of given size(s).
+ * Tokenizes the input into n-grams of the given size.
  * @author Otis Gospodnetic
  */
 public class EdgeNGramTokenizer extends Tokenizer {
@@ -34,8 +34,11 @@
 //    FRONT (),
 //    BACK ();
 //  }
+  /** Specifies which side of the input the n-gram should be generated from */
   public static class Side {
+    /** Get the n-gram from the front of the input */
     public static Side FRONT = new Side("front");
+    /** Get the n-gram from the end of the input */
     public static Side BACK = new Side("back");
     private Side(String label) {}
   }
@@ -46,10 +49,10 @@
   private boolean started = false;
 
   /**
-   * Creates EdgeNGramTokenizer with given min and max n-grams.
+   * Creates EdgeNGramTokenizer that can generate an n-gram of the given size.
    * @param input Reader holding the input to be tokenized
    * @param side the {@link Side} from which to chop off an n-gram 
-   * @param gramSize the n-gram size to generate
+   * @param gramSize the size of the n-gram to generate
    */
   public EdgeNGramTokenizer(Reader input, Side side, int gramSize) {
     super(input);

Modified: lucene/java/trunk/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/NGramTokenizer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/NGramTokenizer.java?view=diff&rev=489847&r1=489846&r2=489847
==============================================================================
--- lucene/java/trunk/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/NGramTokenizer.java
(original)
+++ lucene/java/trunk/contrib/analyzers/src/java/org/apache/lucene/analysis/ngram/NGramTokenizer.java
Fri Dec 22 19:36:34 2006
@@ -24,7 +24,7 @@
 import java.io.Reader;
 
 /**
- * Tokenizes the input into n-grams of given size(s).
+ * Tokenizes the input into n-grams of the given size(s).
  * @author Otis Gospodnetic
  */
 public class NGramTokenizer extends Tokenizer {



Mime
View raw message