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];
366
for (int i = 0; i <
_parent
.ColumnPairs.Length; i++)
368
if (!inputSchema.TryGetColumnIndex(
_parent
.ColumnPairs[i].inputColumnName, out int srcCol))
369
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input",
_parent
.ColumnPairs[i].inputColumnName);
370
_parent
.CheckInputColumn(InputSchema, i, srcCol);
378
if (!string.IsNullOrEmpty(
_parent
._columns[i].LanguageColumn))
380
if (!inputSchema.TryGetColumnIndex(
_parent
._columns[i].LanguageColumn, out int langCol))
381
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "language",
_parent
._columns[i].LanguageColumn);
387
_parent
.CheckResources();
392
var result = new DataViewSchema.DetachedColumn[
_parent
.ColumnPairs.Length];
393
for (int i = 0; i <
_parent
.ColumnPairs.Length; i++)
395
InputSchema.TryGetColumnIndex(
_parent
.ColumnPairs[i].inputColumnName, out int colIndex);
397
result[i] = new DataViewSchema.DetachedColumn(
_parent
.ColumnPairs[i].outputColumnName, _types[i]);
405
Host.Assert(0 <= iinfo && iinfo <
_parent
.ColumnPairs.Length);
408
StopWordsRemovingEstimator.Language stopWordslang =
_parent
._columns[iinfo].Language;
449
for (int i = 0; i <
_parent
.ColumnPairs.Length; i++)
451
var srcVariableName = ctx.GetVariableName(
_parent
.ColumnPairs[i].inputColumnName);
454
var dstVariableName = ctx.AddIntermediateVariable(_types[i],
_parent
.ColumnPairs[i].outputColumnName);
470
var langToUse =
_parent
._columns[iinfo].Language;
520
private protected override void SaveModel(ModelSaveContext ctx) =>
_parent
.SaveModel(ctx);