35 references to CaseMode
Microsoft.ML.Samples (2)
Dynamic\Transforms\Text\FeaturizeTextWithOptions.cs (1)
50
CaseMode = TextNormalizingEstimator.
CaseMode
.Lower,
Dynamic\Transforms\Text\NormalizeText.cs (1)
27
"NormalizedText", "Text", TextNormalizingEstimator.
CaseMode
.Lower,
Microsoft.ML.Tests (14)
OnnxConversionTest.cs (2)
391
new TextNormalizingEstimator(mlContext, keepDiacritics: true, caseMode: TextNormalizingEstimator.
CaseMode
.Upper, columns: new[] { ("UpperText", "text") })).Append(
392
new TextNormalizingEstimator(mlContext, keepDiacritics: true, caseMode: TextNormalizingEstimator.
CaseMode
.None, columns: new[] { ("OriginalText", "text") }));
Transformers\TextFeaturizerTests.cs (11)
249
CaseMode = TextNormalizingEstimator.
CaseMode
.None
261
private void TestCaseMode(IDataView dataView, TestClass[] data, TextNormalizingEstimator.
CaseMode
caseMode)
276
if (caseMode == TextNormalizingEstimator.
CaseMode
.Upper)
281
else if (caseMode == TextNormalizingEstimator.
CaseMode
.Lower)
286
else if (caseMode == TextNormalizingEstimator.
CaseMode
.None)
303
TestCaseMode(dataView, data, TextNormalizingEstimator.
CaseMode
.Lower);
304
TestCaseMode(dataView, data, TextNormalizingEstimator.
CaseMode
.Upper);
305
TestCaseMode(dataView, data, TextNormalizingEstimator.
CaseMode
.None);
314
CaseMode = TextNormalizingEstimator.
CaseMode
.None,
351
CaseMode = TextNormalizingEstimator.
CaseMode
.None,
389
CaseMode = TextNormalizingEstimator.
CaseMode
.None,
Transformers\TextNormalizer.cs (1)
57
new TextNormalizingEstimator(ML, caseMode: TextNormalizingEstimator.
CaseMode
.Upper, columns: new[] { ("UpperText", "text") })).Append(
Microsoft.ML.Transforms (19)
Text\TextCatalog.cs (1)
137
TextNormalizingEstimator.
CaseMode
caseMode = TextNormalizeDefaults.Mode,
Text\TextFeaturizingEstimator.cs (5)
26
using CaseMode = TextNormalizingEstimator.
CaseMode
;
184
public
CaseMode
CaseMode = TextNormalizingEstimator.Defaults.Mode;
306
public readonly
CaseMode
TextCase;
346
TextCase !=
CaseMode
.None ||
380
host.Check(Enum.IsDefined(typeof(
CaseMode
), parent.OptionalSettings.CaseMode));
Text\TextNormalizing.cs (13)
60
public TextNormalizingEstimator.
CaseMode
TextCase = TextNormalizingEstimator.Defaults.Mode;
96
private readonly TextNormalizingEstimator.
CaseMode
_caseMode;
102
TextNormalizingEstimator.
CaseMode
caseMode = TextNormalizingEstimator.Defaults.Mode,
163
_caseMode = (TextNormalizingEstimator.
CaseMode
)ctx.Reader.ReadByte();
164
host.CheckDecode(Enum.IsDefined(typeof(TextNormalizingEstimator.
CaseMode
), _caseMode));
249
var isCaseChange = (_parent._caseMode == TextNormalizingEstimator.
CaseMode
.Lower) ? "LOWER" :
250
(_parent._caseMode == TextNormalizingEstimator.
CaseMode
.Upper) ? "UPPER" : "NONE";
424
if (_parent._caseMode == TextNormalizingEstimator.
CaseMode
.Lower)
426
else if (_parent._caseMode == TextNormalizingEstimator.
CaseMode
.Upper)
521
public const
CaseMode
Mode =
CaseMode
.Lower;
545
CaseMode
caseMode = Defaults.Mode,
564
CaseMode
caseMode = Defaults.Mode,