1 write to _parent
Microsoft.ML.Transforms (1)
Text\NgramTransform.cs (1)
485_parent = parent;
35 references to _parent
Microsoft.ML.Transforms (35)
Text\NgramTransform.cs (35)
486_types = new DataViewType[_parent.ColumnPairs.Length]; 487_srcTypes = new DataViewType[_parent.ColumnPairs.Length]; 488_srcCols = new int[_parent.ColumnPairs.Length]; 489for (int i = 0; i < _parent.ColumnPairs.Length; i++) 491_types[i] = new VectorDataViewType(NumberDataViewType.Single, _parent._ngramMaps[i].Count); 492inputSchema.TryGetColumnIndex(_parent.ColumnPairs[i].inputColumnName, out _srcCols[i]); 499var result = new DataViewSchema.DetachedColumn[_parent.ColumnPairs.Length]; 500for (int i = 0; i < _parent.ColumnPairs.Length; i++) 505result[i] = new DataViewSchema.DetachedColumn(_parent.ColumnPairs[i].outputColumnName, _types[i], builder.ToAnnotations()); 516GetSlotNames(iinfo, _parent._ngramMaps[iinfo].Count, ref dst); 519var slotNamesType = new VectorDataViewType(TextDataViewType.Instance, _parent._ngramMaps[iinfo].Count); 520builder.AddSlotNames(_parent._ngramMaps[iinfo].Count, getter); 527Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 537var pool = _parent._ngramMaps[iinfo]; 543uint[] ngram = new uint[_parent._transformInfos[iinfo].NgramLength]; 559var transformInfo = _parent._transformInfos[iinfo]; 562Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 570var pool = _parent._ngramMaps[iinfo]; 606weights[i] = _parent._invDocFreqs[iinfo][i]; 662Host.Assert(lim <= Utils.Size(_parent._transformInfos[iinfo].NonEmptyLevels)); 664if (!_parent._transformInfos[iinfo].NonEmptyLevels[lim - 1]) 666return _parent._ngramMaps[iinfo].Get(ngram, 0, lim); 673Contracts.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 678var bldr = new NgramBufferBuilder(_parent._transformInfos[iinfo].NgramLength, _parent._transformInfos[iinfo].SkipLength, 679_parent._ngramMaps[iinfo].Count, GetNgramIdFinder(iinfo)); 685switch (_parent._transformInfos[iinfo].Weighting) 688Host.AssertValue(_parent._invDocFreqs[iinfo]); 698VBufferUtils.Apply(ref dst, (int i, ref float v) => v = (float)(v * _parent._invDocFreqs[iinfo][i])); 705Host.AssertValue(_parent._invDocFreqs[iinfo]); 715VBufferUtils.Apply(ref dst, (int i, ref float v) => v = v >= 1 ? (float)_parent._invDocFreqs[iinfo][i] : 0); 748int numColumns = _parent.ColumnPairs.Length; 751string inputColumnName = _parent.ColumnPairs[iinfo].inputColumnName; 755string outputColumnName = _parent.ColumnPairs[iinfo].outputColumnName; 776var transformInfo = _parent._transformInfos[iinfo];