Skip to content

Cannot create TextLoader without loading assemblies into ComponentCatalog #2996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yaeldekel opened this issue Mar 18, 2019 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@yaeldekel
Copy link

In the TextLoader constructor, it is allows to pass a null Options, or an Options object with a null Columns (see https://github.com/dotnet/machinelearning/blob/master/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoader.cs#L1095 and https://github.com/dotnet/machinelearning/blob/master/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoader.cs#L1111).
When this is the case, the constructor goes to TryParseSchema which uses the ComponentCatalog to load the schema, so we get a null reference exception here: https://github.com/dotnet/machinelearning/blob/master/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoader.cs#L1293, if no assemblies are loaded.

@singlis singlis added the bug Something isn't working label Mar 18, 2019
@yaeldekel yaeldekel self-assigned this Mar 19, 2019
This was referenced Mar 19, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Mar 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants