1 write to Value
Microsoft.ML.Core (1)
Utilities\NormStr.cs (1)
32Value = str;
28 references to Value
Microsoft.ML.Core (7)
Data\ModelHeader.cs (2)
153offset += ns.Value.Length * sizeof(char); 163foreach (var ch in ns.Value.Span)
Utilities\NormStr.cs (5)
109if (strSpan.SequenceEqual(ns.Value.Span)) 132if (ns.Value.Span.SequenceEqual(span)) 185var value = ns.Value; 235_rgmeta[_cns] = Utils.MakeUlong((uint)_rgins[iins], (uint)ns.Value.Length); 272_rgmeta[ins] = Utils.MakeUlong((uint)_rgins[iins], (uint)ns.Value.Length);
Microsoft.ML.Data (8)
Transforms\ValueToKeyMappingTransformerImpl.cs (8)
125Comparison<int> comp = (i, j) => _pool.GetNormStrById(i).Value.Span.CompareTo(_pool.GetNormStrById(j).Value.Span, StringComparison.Ordinal); 131var nstr = sortedPool.Add(_pool.GetNormStrById(perm[i]).Value); 133Contracts.Assert(i == 0 || sortedPool.GetNormStrById(i - 1).Value.Span.CompareTo(sortedPool.GetNormStrById(i).Value.Span, StringComparison.Ordinal) < 0); 635ctx.SaveNonEmptyString(nstr.Value); 662editor.Values[nstr.Id] = nstr.Value; 673writer.WriteLine("{0}\t{1}", nstr.Id, nstr.Value);
Microsoft.ML.Transforms (13)
Expression\KeyWordTable.cs (3)
71if (_mpnstrtidPunc.TryGetValue(_pool.Add(nstrTmp.Value), out tidTmp)) 89Contracts.Assert(!nstr.Value.IsEmpty); 95Contracts.Assert(!nstr.Value.IsEmpty);
Expression\LambdaParser.cs (2)
247_mapTidStr[kvp.Value.Kind] = kvp.Key.Value.ToString(); 250_mapTidStr[kvp.Value] = kvp.Key.Value.ToString();
Expression\Lexer.cs (2)
671return KeyToken.CreateKeyWord(GetSpan(), nstr.Value.ToString(), kind.Kind, kind.IsContextKeyWord); 673return new IdentToken(GetSpan(), nstr.Value.ToString());
Text\StopWordsRemovingTransformer.cs (5)
474var words = StopWords[iinfo].Select(item => Convert.ToString(item.Value)); 475node.AddAttribute("stopwords", StopWords[iinfo].Select(item => Convert.ToString(item.Value))); 963ctx.SaveString(nstr.Value); 970writer.WriteLine("{0}\t{1}", nstr.Id, nstr.Value); 1161node.AddAttribute("stopwords", words.Select(item => Convert.ToString(item.Value)));
Text\WordEmbeddingsExtractor.cs (1)
142labels.Add(new string(label.Value.ToArray()));