37 references to Language
Microsoft.ML.Samples (1)
Dynamic\Transforms\Text\RemoveDefaultStopWords.cs (1)
34StopWordsRemovingEstimator.Language.English));
Microsoft.ML.Tests (1)
OnnxConversionTest.cs (1)
1568StopWordsRemovingEstimator.Language.English));
Microsoft.ML.Transforms (35)
Text\StopWordsRemovingTransformer.cs (30)
77public StopWordsRemovingEstimator.Language? Language; 110public StopWordsRemovingEstimator.Language Language = StopWordsRemovingEstimator.Defaults.DefaultLanguage; 137private static volatile Dictionary<ReadOnlyMemory<char>, StopWordsRemovingEstimator.Language> _langsDictionary; 149var values = Enum.GetValues(typeof(StopWordsRemovingEstimator.Language)).Cast<int>(); 164private static Dictionary<ReadOnlyMemory<char>, StopWordsRemovingEstimator.Language> LangsDictionary 168Dictionary<ReadOnlyMemory<char>, StopWordsRemovingEstimator.Language> result = _langsDictionary; 171var langsDictionary = Enum.GetValues(typeof(StopWordsRemovingEstimator.Language)).Cast<StopWordsRemovingEstimator.Language>() 236var lang = (StopWordsRemovingEstimator.Language)ctx.Reader.ReadInt32(); 237Contracts.CheckDecode(Enum.IsDefined(typeof(StopWordsRemovingEstimator.Language), lang)); 294foreach (StopWordsRemovingEstimator.Language lang in Enum.GetValues(typeof(StopWordsRemovingEstimator.Language))) 319private static void AddResourceIfNotPresent(StopWordsRemovingEstimator.Language lang) 341private static Stream GetResourceFileStreamOrNull(StopWordsRemovingEstimator.Language lang) 408StopWordsRemovingEstimator.Language stopWordslang = _parent._columns[iinfo].Language; 419var langToUse = stopWordslang; 470var langToUse = _parent._columns[iinfo].Language; 483private void UpdateLanguage(ref StopWordsRemovingEstimator.Language langToUse, ValueGetter<ReadOnlyMemory<char>> getLang, ref ReadOnlyMemory<char> langTxt) 488StopWordsRemovingEstimator.Language lang; 498private bool ResourceExists(StopWordsRemovingEstimator.Language lang) 545/// <seealso cref="TextCatalog.RemoveDefaultStopWords(TransformsCatalog.TextTransforms, string, string, Language)" /> 575public readonly Language Language; 588Language language = Defaults.DefaultLanguage, 627public const Language DefaultLanguage = Language.English; 643internal StopWordsRemovingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null, Language language = Language.English) 655internal StopWordsRemovingEstimator(IHostEnvironment env, (string outputColumnName, string inputColumnName)[] columns, Language language = Language.English)
Text\TextCatalog.cs (2)
310StopWordsRemovingEstimator.Language language = StopWordsRemovingEstimator.Language.English)
Text\TextFeaturizingEstimator.cs (3)
313public StopWordsRemovingEstimator.Language StopwordsLanguage 314=> (StopWordsRemovingEstimator.Language)Enum.Parse(typeof(StopWordsRemovingEstimator.Language), Language.ToString());