コード例 #1
0
 /// <summary>
 /// Create a KStemmer with the default cache size of 20 000 entries.
 /// </summary>
 /// <param name="in_Renamed">The TokenStream whose output will be the input to KStemFilter.</param>
 public KStemFilter(TokenStream in_Renamed)
     : base(in_Renamed)
 {
     stemmer = new KStemmer();
 }
コード例 #2
0
 /// <summary>
 ///  Create a KStemmer with the given cache size.
 /// </summary>
 /// <param name="in_Renamed">
 /// The TokenStream whose output will be the input to KStemFilter.
 /// </param>
 /// <param name="nCacheSize">
 /// Maximum number of entries to store in the
 /// Stemmer's cache (stems stored in this cache do not need to be
 /// recomputed, speeding up the stemming process).
 ///</param>
 public KStemFilter(TokenStream in_Renamed, int nCacheSize)
     : base(in_Renamed)
 {
     stemmer = new KStemmer(nCacheSize);
 }