1 write to _parent
Microsoft.ML.Transforms (1)
Text\StopWordsRemovingTransformer.cs (1)
360_parent = parent;
21 references to _parent
Microsoft.ML.Transforms (21)
Text\StopWordsRemovingTransformer.cs (21)
361_types = new DataViewType[_parent.ColumnPairs.Length]; 362_languageColumns = new int[_parent.ColumnPairs.Length]; 366for (int i = 0; i < _parent.ColumnPairs.Length; i++) 368if (!inputSchema.TryGetColumnIndex(_parent.ColumnPairs[i].inputColumnName, out int srcCol)) 369throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName); 370_parent.CheckInputColumn(InputSchema, i, srcCol); 378if (!string.IsNullOrEmpty(_parent._columns[i].LanguageColumn)) 380if (!inputSchema.TryGetColumnIndex(_parent._columns[i].LanguageColumn, out int langCol)) 381throw Host.ExceptSchemaMismatch(nameof(inputSchema), "language", _parent._columns[i].LanguageColumn); 387_parent.CheckResources(); 392var result = new DataViewSchema.DetachedColumn[_parent.ColumnPairs.Length]; 393for (int i = 0; i < _parent.ColumnPairs.Length; i++) 395InputSchema.TryGetColumnIndex(_parent.ColumnPairs[i].inputColumnName, out int colIndex); 397result[i] = new DataViewSchema.DetachedColumn(_parent.ColumnPairs[i].outputColumnName, _types[i]); 405Host.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length); 408StopWordsRemovingEstimator.Language stopWordslang = _parent._columns[iinfo].Language; 449for (int i = 0; i < _parent.ColumnPairs.Length; i++) 451var srcVariableName = ctx.GetVariableName(_parent.ColumnPairs[i].inputColumnName); 454var dstVariableName = ctx.AddIntermediateVariable(_types[i], _parent.ColumnPairs[i].outputColumnName); 470var langToUse = _parent._columns[iinfo].Language; 520private protected override void SaveModel(ModelSaveContext ctx) => _parent.SaveModel(ctx);