8 instantiations of BertOptions
Microsoft.ML.Tokenizers (1)
Model\BertTokenizer.cs (1)
761
options ??=
new
();
Microsoft.ML.Tokenizers.Tests (7)
BertTokenizerTests.cs (7)
34
var bertOptions = new
BertOptions
()
184
BertTokenizer[] bertTokenizers = [BertTokenizer.Create(vocabFile, new
BertOptions
{ LowerCaseBeforeTokenization = false }),
185
BertTokenizer.Create(vocabStream, new
BertOptions
{ LowerCaseBeforeTokenization = false })];
252
bertTokenizer = await BertTokenizer.CreateAsync(vocabStream, new
BertOptions
{ LowerCaseBeforeTokenization = false }); // no lowercasing and no accent stripping
267
bertTokenizer = await BertTokenizer.CreateAsync(vocabStream, new
BertOptions
{ RemoveNonSpacingMarks = true }); // lowercasing and accent stripping
281
bertTokenizer = await BertTokenizer.CreateAsync(vocabStream, new
BertOptions
{ LowerCaseBeforeTokenization = false, RemoveNonSpacingMarks = true }); // no lowercasing and accent stripping
329
bertTokenizer = await BertTokenizer.CreateAsync(vocabStream, new
BertOptions
{ IndividuallyTokenizeCjk = false }); // do not tokenize Chinese characters
8 references to BertOptions
Microsoft.ML.Tokenizers (7)
Model\BertTokenizer.cs (7)
30
BertOptions
options) : base(vocab, vocabReverse, options)
663
BertOptions
? options = null) =>
679
BertOptions
? options = null) =>
694
BertOptions
? options = null,
719
BertOptions
? options = null,
734
private static BertTokenizer Create(Stream vocabStream,
BertOptions
? options, bool disposeStream)
759
BertOptions
? options)
Microsoft.ML.Tokenizers.Tests (1)
BertTokenizerTests.cs (1)
34
var
bertOptions = new BertOptions()