1 write to _parent
Microsoft.ML.Transforms (1)
Text\TextNormalizing.cs (1)
206
_parent
= parent;
20 references to _parent
Microsoft.ML.Transforms (20)
Text\TextNormalizing.cs (20)
207
_types = new DataViewType[
_parent
.ColumnPairs.Length];
210
inputSchema.TryGetColumnIndex(
_parent
.ColumnPairs[i].inputColumnName, out int srcCol);
216
public bool CanSaveOnnx(OnnxContext ctx) => (
_parent
._keepDiacritics &&
_parent
._keepNumbers &&
_parent
._keepPunctuations);
223
string inputColumnName =
_parent
.ColumnPairs[iinfo].inputColumnName;
227
string outputColumnName =
_parent
.ColumnPairs[iinfo].outputColumnName;
249
var isCaseChange = (
_parent
._caseMode == TextNormalizingEstimator.CaseMode.Lower) ? "LOWER" :
250
(
_parent
._caseMode == TextNormalizingEstimator.CaseMode.Upper) ? "UPPER" : "NONE";
259
var result = new DataViewSchema.DetachedColumn[
_parent
.ColumnPairs.Length];
260
for (int i = 0; i <
_parent
.ColumnPairs.Length; i++)
262
InputSchema.TryGetColumnIndex(
_parent
.ColumnPairs[i].inputColumnName, out int colIndex);
264
result[i] = new DataViewSchema.DetachedColumn(
_parent
.ColumnPairs[i].outputColumnName, _types[i], null);
329
Host.Assert(0 <= iinfo && iinfo <
_parent
.ColumnPairs.Length);
332
var srcType = input.Schema[
_parent
.ColumnPairs[iinfo].inputColumnName].Type;
401
if (!
_parent
._keepPunctuations && char.IsPunctuation(ch) || !
_parent
._keepNumbers && char.IsNumber(ch))
410
if (!
_parent
._keepDiacritics)
424
if (
_parent
._caseMode == TextNormalizingEstimator.CaseMode.Lower)
426
else if (
_parent
._caseMode == TextNormalizingEstimator.CaseMode.Upper)