1 write to UnknownTokenId
Microsoft.ML.Tokenizers (1)
Model\CodeGenTokenizer.cs (1)
153
UnknownTokenId
= value.unknownId;
7 references to UnknownTokenId
Microsoft.ML.Tokenizers (6)
Model\CodeGenTokenizer.cs (6)
1277
if (
UnknownTokenId
.HasValue && id ==
UnknownTokenId
.Value)
1413
if (
UnknownTokenId
.HasValue && id ==
UnknownTokenId
.Value)
1685
else if (
UnknownTokenId
.HasValue)
1687
result.Add(GetToken(
UnknownTokenId
.Value, UnknownToken!, symbols[index].pieceSpan.Index, symbols[index].pieceSpan.Length, originalText, mapping));
Microsoft.ML.Tokenizers.Tests (1)
CodeGenTests.cs (1)
976
Assert.Equal(codeGenTokenizer.EncodeToIds(DefaultSpecialToken)[0], codeGenTokenizer.
UnknownTokenId
!.Value);