Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the PatternTokenizer class.
 /// </summary>
 public PatternTokenizer(string name, string pattern = default(string), RegexFlags flags = default(RegexFlags), int?group = default(int?))
     : base(name)
 {
     Pattern = pattern;
     Flags   = flags;
     Group   = group;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the PatternAnalyzer class.
 /// </summary>
 public PatternAnalyzer(string name, bool?lowerCaseTerms = default(bool?), string pattern = default(string), RegexFlags flags = default(RegexFlags), IList <string> stopwords = default(IList <string>))
     : base(name)
 {
     LowerCaseTerms = lowerCaseTerms;
     Pattern        = pattern;
     Flags          = flags;
     Stopwords      = stopwords;
 }