@@ -984,7 +984,7 @@ private CustomStopWordsRemovingTransformer(IHost host, ModelLoadContext ctx) :
984
984
{
985
985
986
986
const string dir = "Stopwords" ;
987
- NormStr . Pool stopwrods = null ;
987
+ NormStr . Pool stopwords = null ;
988
988
bool res = ctx . TryProcessSubModel ( dir ,
989
989
c =>
990
990
{
@@ -997,22 +997,22 @@ private CustomStopWordsRemovingTransformer(IHost host, ModelLoadContext ctx) :
997
997
int cstr = ctx . Reader . ReadInt32 ( ) ;
998
998
Host . CheckDecode ( cstr > 0 ) ;
999
999
1000
- stopwrods = new NormStr . Pool ( ) ;
1000
+ stopwords = new NormStr . Pool ( ) ;
1001
1001
for ( int istr = 0 ; istr < cstr ; istr ++ )
1002
1002
{
1003
- var nstr = stopwrods . Add ( ctx . LoadString ( ) ) ;
1003
+ var nstr = stopwords . Add ( ctx . LoadString ( ) ) ;
1004
1004
Host . CheckDecode ( nstr . Id == istr ) ;
1005
1005
}
1006
1006
1007
1007
// All stopwords are distinct.
1008
- Host . CheckDecode ( stopwrods . Count == cstr ) ;
1008
+ Host . CheckDecode ( stopwords . Count == cstr ) ;
1009
1009
// The deserialized pool should not have the empty string.
1010
- Host . CheckDecode ( stopwrods . Get ( "" ) == null ) ;
1010
+ Host . CheckDecode ( stopwords . Get ( "" ) == null ) ;
1011
1011
} ) ;
1012
1012
if ( ! res )
1013
1013
throw Host . ExceptDecode ( ) ;
1014
1014
1015
- _stopWordsMap = stopwrods ;
1015
+ _stopWordsMap = stopwords ;
1016
1016
}
1017
1017
}
1018
1018
0 commit comments