@@ -984,7 +984,7 @@ private CustomStopWordsRemovingTransformer(IHost host, ModelLoadContext ctx) :
984984 {
985985
986986 const string dir = "Stopwords" ;
987- NormStr . Pool stopwrods = null ;
987+ NormStr . Pool stopwords = null ;
988988 bool res = ctx . TryProcessSubModel ( dir ,
989989 c =>
990990 {
@@ -997,22 +997,22 @@ private CustomStopWordsRemovingTransformer(IHost host, ModelLoadContext ctx) :
997997 int cstr = ctx . Reader . ReadInt32 ( ) ;
998998 Host . CheckDecode ( cstr > 0 ) ;
999999
1000- stopwrods = new NormStr . Pool ( ) ;
1000+ stopwords = new NormStr . Pool ( ) ;
10011001 for ( int istr = 0 ; istr < cstr ; istr ++ )
10021002 {
1003- var nstr = stopwrods . Add ( ctx . LoadString ( ) ) ;
1003+ var nstr = stopwords . Add ( ctx . LoadString ( ) ) ;
10041004 Host . CheckDecode ( nstr . Id == istr ) ;
10051005 }
10061006
10071007 // All stopwords are distinct.
1008- Host . CheckDecode ( stopwrods . Count == cstr ) ;
1008+ Host . CheckDecode ( stopwords . Count == cstr ) ;
10091009 // The deserialized pool should not have the empty string.
1010- Host . CheckDecode ( stopwrods . Get ( "" ) == null ) ;
1010+ Host . CheckDecode ( stopwords . Get ( "" ) == null ) ;
10111011 } ) ;
10121012 if ( ! res )
10131013 throw Host . ExceptDecode ( ) ;
10141014
1015- _stopWordsMap = stopwrods ;
1015+ _stopWordsMap = stopwords ;
10161016 }
10171017 }
10181018
0 commit comments