1 write to UnknownId
Microsoft.ML.Tokenizers (1)
Model\SentencePieceTokenizer.cs (1)
68
UnknownId
= modelProto.TrainerSpec.UnkId < 0 ? 0 : modelProto.TrainerSpec.UnkId;
11 references to UnknownId
Microsoft.ML.Tokenizers (10)
Model\SentencePieceTokenizer.cs (10)
340
id =
UnknownId
;
347
if (id ==
UnknownId
&& ByteFallback)
689
id =
UnknownId
;
696
if (id ==
UnknownId
&& ByteFallback)
1013
id =
UnknownId
;
1020
if (id ==
UnknownId
&& ByteFallback)
1393
id =
UnknownId
;
1400
if (id ==
UnknownId
&& ByteFallback)
1754
else if (id == tokenizer.
UnknownId
)
1995
else if (id == tokenizer.
UnknownId
)
Microsoft.ML.Tokenizers.Tests (1)
LlamaTests.cs (1)
363
Assert.Equal(0, bpe.
UnknownId
);