Skip to content

Why I can't just pass file name to DataReader.Read method? #1041

@Ivanidzo4ka

Description

@Ivanidzo4ka
ConsoleEnvironment env = new ConsoleEnvironment();
var reader = TextLoader.CreateReader(env, row => (label: row.LoadText(0), image: row.LoadText(1));
var data = reader.Read("file.csv");

will force me to cast file name to MultifileSource. Can I just pass filename if I have only one file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIIssues pertaining the friendly API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions