using System; using System.Collections.Generic; using System.Text; namespace BotSharp.NLP.Tokenize { public class TokenizationOptions { /// /// Regex pattern /// public string Pattern { get; set; } /// /// True if this tokenizer's pattern should be used to find separators between tokens; /// False if this tokenizer's pattern should be used to find the tokens themselves. /// public bool IsGap { get; set; } /// /// True if any empty tokens generated by the tokenizer should be discarded. /// Empty tokens can only be generated if `IsGap == True` /// public bool IgnoreEmpty { get; set; } /// /// Split "isn't" into "is", "n't" /// public List SpecialWords { get; set; } /// /// Convert bracket-like characters to avoid confusion with parse brackets. /// public bool ConvertParentheses { get; set; } } }