1 write to Data
Microsoft.ML.Tokenizers (1)
Utils\StringSpanOrdinalKey.cs (1)
32Data = data;
8 references to Data
Microsoft.ML.Tokenizers (8)
Model\BPETokenizer.cs (2)
253VocabReverse.Add(kvp.Value, kvp.Key.Data!); 609public IReadOnlyDictionary<string, int> Vocabulary => _vocabOriginal ??= new ReadOnlyDictionary<string, int>(_vocab.ToDictionary(kvp => kvp.Key.Data!, kvp => kvp.Value));
Model\EnglishRobertaTokenizer.cs (1)
280string v = value.Data!;
Model\TiktokenTokenizer.cs (1)
991internal IReadOnlyDictionary<string, int> Vocabulary => _vocabOriginal ??= _vocab.ToDictionary(kvp => kvp.Key.Data!, kvp => kvp.Value.Id);
Utils\StringSpanOrdinalKey.cs (4)
36Data.AsSpan(); 38public override string ToString() => Data ?? Span.ToString(); 140writer.WriteStringValue(value.Data!); 143public override void Write(Utf8JsonWriter writer, StringSpanOrdinalKey value, JsonSerializerOptions options) => writer.WriteStringValue(value.Data!);