Skip to content

Commit b1a05c0

Browse files
fix bug (#4592)
1 parent 2b5bd21 commit b1a05c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.ML.Transforms/Text/StopWordsRemovingTransformer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ internal sealed class LoaderArguments : ArgumentsBase, IStopWordsRemoverFactory
691691
{
692692
public ITransformer CreateComponent(IHostEnvironment env, IDataView input, OneToOneColumn[] column)
693693
{
694-
if (Utils.Size(Stopword) > 0)
694+
if (Utils.Size(Stopwords) > 0)
695695
return new CustomStopWordsRemovingTransformer(env, Stopwords, column.Select(x => (x.Name, x.Source)).ToArray());
696696
else
697697
return new CustomStopWordsRemovingTransformer(env, Stopword, DataFile, StopwordsColumn, Loader, column.Select(x => (x.Name, x.Source)).ToArray());

0 commit comments

Comments
 (0)