6 references to UnknownToken
Microsoft.ML.Tokenizers (6)
Model\BertTokenizer.cs (1)
793AddSpecialToken(vocab, specialTokens, options.UnknownToken, lowerCase);
Model\WordPieceTokenizer.cs (5)
47if (options.UnknownToken is null) 49throw new ArgumentNullException(nameof(options.UnknownToken)); 62if (!vocab!.TryGetValue(options.UnknownToken, out int id)) 64throw new ArgumentException($"The unknown token '{options.UnknownToken}' is not in the vocabulary."); 67UnknownToken = options.UnknownToken;