Пример #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);
 }