Skip to content

FeaturizeText should allow only outputColumnName to be defined #3992

@artidoro

Description

@artidoro

One of the extension methods for FeaturizeText needs both the outputColumnName and the inputColumnNames to be provided.

There is no compile error if inputColumnNames is not provided, only a runtime error.

We should fix the error so that when inputColumnNames is not provided, it is set to new[] { outputColumnName } as we do everywhere else in the code base.

public static TextFeaturizingEstimator FeaturizeText(this TransformsCatalog.TextTransforms catalog,
string outputColumnName,
TextFeaturizingEstimator.Options options,
params string[] inputColumnNames)
=> new TextFeaturizingEstimator(Contracts.CheckRef(catalog, nameof(catalog)).GetEnvironment(),
outputColumnName, inputColumnNames, options);

Metadata

Metadata

Assignees

Labels

P2Priority of the issue for triage purpose: Needs to be fixed at some point.good first issueGood for newcomersup-for-grabsA good issue to fix if you are trying to contribute to the project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions