예제 #1
0
        /// <summary> Static method for stemming with different charsets</summary>
        public static System.String Stem(System.String theWord, char[] charset)
        {
            RussianStemmer stemmer = new RussianStemmer();

            stemmer.SetCharset(charset);
            return(stemmer.Stem(theWord));
        }
		/// <summary> Set a alternative/custom RussianStemmer for this filter.</summary>
		public void  SetStemmer(RussianStemmer stemmer)
		{
			if (stemmer != null)
			{
				this.stemmer = stemmer;
			}
		}
예제 #3
0
 /// <summary> Set a alternative/custom RussianStemmer for this filter.</summary>
 public void  SetStemmer(RussianStemmer stemmer)
 {
     if (stemmer != null)
     {
         this.stemmer = stemmer;
     }
 }
		/// <summary> Static method for stemming with different charsets</summary>
		public static System.String Stem(System.String theWord, char[] charset)
		{
			RussianStemmer stemmer = new RussianStemmer();
			stemmer.SetCharset(charset);
			return stemmer.Stem(theWord);
		}
		public RussianStemFilter(TokenStream in_Renamed, char[] charset):base(in_Renamed)
		{
			stemmer = new RussianStemmer(charset);
		}
예제 #6
0
 public RussianStemFilter(TokenStream in_Renamed, char[] charset) : base(in_Renamed)
 {
     stemmer = new RussianStemmer(charset);
 }