From 0ebe4f69148a4f6ce3270b28d655eceea2671976 Mon Sep 17 00:00:00 2001 From: Leo Gaunt Date: Wed, 2 Dec 2020 19:07:15 +0000 Subject: [PATCH] Fixed Spelling on stopwords --- .../Text/StopWordsRemovingTransformer.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Microsoft.ML.Transforms/Text/StopWordsRemovingTransformer.cs b/src/Microsoft.ML.Transforms/Text/StopWordsRemovingTransformer.cs index 959461a104..6bc00b9a30 100644 --- a/src/Microsoft.ML.Transforms/Text/StopWordsRemovingTransformer.cs +++ b/src/Microsoft.ML.Transforms/Text/StopWordsRemovingTransformer.cs @@ -984,7 +984,7 @@ private CustomStopWordsRemovingTransformer(IHost host, ModelLoadContext ctx) : { const string dir = "Stopwords"; - NormStr.Pool stopwrods = null; + NormStr.Pool stopwords = null; bool res = ctx.TryProcessSubModel(dir, c => { @@ -997,22 +997,22 @@ private CustomStopWordsRemovingTransformer(IHost host, ModelLoadContext ctx) : int cstr = ctx.Reader.ReadInt32(); Host.CheckDecode(cstr > 0); - stopwrods = new NormStr.Pool(); + stopwords = new NormStr.Pool(); for (int istr = 0; istr < cstr; istr++) { - var nstr = stopwrods.Add(ctx.LoadString()); + var nstr = stopwords.Add(ctx.LoadString()); Host.CheckDecode(nstr.Id == istr); } // All stopwords are distinct. - Host.CheckDecode(stopwrods.Count == cstr); + Host.CheckDecode(stopwords.Count == cstr); // The deserialized pool should not have the empty string. - Host.CheckDecode(stopwrods.Get("") == null); + Host.CheckDecode(stopwords.Get("") == null); }); if (!res) throw Host.ExceptDecode(); - _stopWordsMap = stopwrods; + _stopWordsMap = stopwords; } }