1 write to AddDummyPrefix
Microsoft.ML.Tokenizers (1)
Model\SentencePieceTokenizer.cs (1)
70
AddDummyPrefix
= modelProto.NormalizerSpec.AddDummyPrefix;
9 references to AddDummyPrefix
Microsoft.ML.Tokenizers (8)
Model\SentencePieceTokenizer.cs (8)
76
_normalizer = new SentencePieceNormalizer(modelProto.NormalizerSpec.RemoveExtraWhitespaces,
AddDummyPrefix
, EscapeWhiteSpaces, modelProto.TrainerSpec.TreatWhitespaceAsSuffix, specialTokens);
1582
AppendTokenWithCheckingPrefix(
AddDummyPrefix
, TreatWhitespaceAsSuffix, token, prefixSuffixChar, ref sb, ref prefixRemoved, ref suffixIndex);
1591
AppendTokenWithCheckingPrefix(
AddDummyPrefix
, TreatWhitespaceAsSuffix, token, prefixSuffixChar, ref sb, ref prefixRemoved, ref suffixIndex);
1642
AppendTokenWithCheckingPrefix(
AddDummyPrefix
, TreatWhitespaceAsSuffix, token, prefixSuffixChar, ref sb, ref prefixRemoved, ref suffixIndex);
1656
if (
AddDummyPrefix
&& TreatWhitespaceAsSuffix && suffixIndex >= 0 && sb.Length > 0)
1838
if (!AppendTokenWithCheckingPrefix(
AddDummyPrefix
, TreatWhitespaceAsSuffix, token, prefixSuffixChar, destination, ref prefixRemoved, ref suffixIndex, ref idsConsumed, ref charsWritten))
1856
if (!AppendTokenWithCheckingPrefix(
AddDummyPrefix
, TreatWhitespaceAsSuffix, token, prefixSuffixChar, destination, ref prefixRemoved, ref suffixIndex, ref idsConsumed, ref charsWritten))
1931
if (!AppendTokenWithCheckingPrefix(
AddDummyPrefix
, TreatWhitespaceAsSuffix, token, prefixSuffixChar, destination, ref prefixRemoved, ref suffixIndex, ref idsConsumed, ref charsWritten))
Microsoft.ML.Tokenizers.Tests (1)
LlamaTests.cs (1)
372
Assert.True(bpe.
AddDummyPrefix
);