Generated class implementing code defined by a snowball script.
Наследование: SF.Snowball.SnowballProgram, ISnowballStemmer
Пример #1
0
 protected internal virtual void  copyFrom(SpanishStemmer other)
 {
     I_p2 = other.I_p2;
     I_p1 = other.I_p1;
     I_pV = other.I_pV;
     base.copyFrom(other);
 }
Пример #2
0
		protected internal virtual void  copy_from(SpanishStemmer other)
		{
			I_p2 = other.I_p2;
			I_p1 = other.I_p1;
			I_pV = other.I_pV;
			base.copy_from(other);
		}
Пример #3
0
 /** Returns the next input Token, after being stemmed */ 
 //public Token next() { 
     
 //    if ((token = Input) == null) { 
 //        return null; 
 //    } 
 //    else { 
 //        stemmer.SetCurrent(token.); 
 //        stemmer.Stem(); 
 //        String s = stemmer.GetCurrent();
 //        if ( !s.Equals(token.Term())) { 
 //            return new Token( s, token.startOffset(), 
 //            token.endOffset(), token.type() ); 
 //        } 
 //        return token; 
 //    } 
 //} 
  
 /** 
  * Set a alternative/custom Stemmer for this filter. 
  */ 
 public void setStemmer(SpanishStemmer stemmer) { 
     if ( stemmer != null ) { 
         this.stemmer = stemmer; 
     } 
 }
Пример #4
0
 public SpanishStemFilter(TokenStream inTokenStream) : base (inTokenStream) {     	
     
     stemmer = new SpanishStemmer(); 
 }