Skip to content

Any reason for inconsistency in params for TextLoader? #2472

Closed
@srsaggam

Description

@srsaggam
  1. This Method :

    public static TextLoader CreateTextLoader<TInput>(this DataOperationsCatalog catalog,

  2. and this one :

    public static TextLoader CreateTextLoader(this DataOperationsCatalog catalog,

Looks like the first one has params like :

char separatorChar = '\t', bool allowQuotedStrings = true, bool supportSparse = true, bool trimWhitespace = false

Where as the second one doesn't have those. In order to use those params there is another method overload :

CreateTextLoader(this DataOperationsCatalog catalog, TextLoader.Arguments args, IMultiStreamSource dataSample = null);

This takes Arguments class and particularly one param is interesting in this Arguments:

char [] Separators

Any reason this is char[] and not char like in other overloads? and why inconsistency in params for the methods 1) and 2).

Metadata

Metadata

Assignees

Labels

APIIssues pertaining the friendly API

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions