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