1 write to Cache
Microsoft.ML.Tokenizers (1)
Model\BPETokenizer.cs (1)
338
Cache
= new StringSpanOrdinalKeyCache<Word>();
9 references to Cache
Microsoft.ML.Tokenizers (9)
Model\BPETokenizer.cs (9)
1340
if (
Cache
is not null)
1342
if (
Cache
.TryGetValue(textSpan, out word))
1352
Cache
.Set(textSpan.ToString(), word);
1451
if (
Cache
is not null)
1453
if (
Cache
.TryGetValue(textSpan, out Word hit))
1468
Cache
.Set(textSpan.ToString(), word);
1531
if (
Cache
is not null)
1533
if (
Cache
.TryGetValue(textSpan, out Word hit))
1549
Cache
.Set(textSpan.ToString(), word);