4 references to ApplyBasicTokenization
Microsoft.ML.Tokenizers (4)
Model\BertTokenizer.cs (4)
35ApplyBasicTokenization = options.ApplyBasicTokenization; 763options.Normalizer ??= options.ApplyBasicTokenization ? new BertNormalizer(options.LowerCaseBeforeTokenization, options.IndividuallyTokenizeCjk, options.RemoveNonSpacingMarks) : null; 767bool lowerCase = options.ApplyBasicTokenization && options.LowerCaseBeforeTokenization; 801options.PreTokenizer ??= options.ApplyBasicTokenization ? PreTokenizer.CreateWordOrPunctuation(options.SplitOnSpecialTokens ? options.SpecialTokens : null) : PreTokenizer.CreateWhiteSpace();