@@ -21,8 +21,8 @@ public static class TextLoaderSaverCatalog
21
21
/// <param name="dataSample">The optional location of a data sample. The sample can be used to infer column names and number of slots in each column.</param>
22
22
public static TextLoader CreateTextLoader ( this DataOperationsCatalog catalog ,
23
23
TextLoader . Column [ ] columns ,
24
- bool hasHeader = TextLoader . DefaultArguments . HasHeader ,
25
- char separatorChar = TextLoader . DefaultArguments . Separator ,
24
+ bool hasHeader = TextLoader . Defaults . HasHeader ,
25
+ char separatorChar = TextLoader . Defaults . Separator ,
26
26
IMultiStreamSource dataSample = null )
27
27
=> new TextLoader ( CatalogUtils . GetEnvironment ( catalog ) , columns , hasHeader , separatorChar , dataSample ) ;
28
28
@@ -53,11 +53,11 @@ public static TextLoader CreateTextLoader(this DataOperationsCatalog catalog,
53
53
/// except for 3rd and 5th columns which have values 6 and 3</param>
54
54
/// <param name="trimWhitespace">Remove trailing whitespace from lines</param>
55
55
public static TextLoader CreateTextLoader < TInput > ( this DataOperationsCatalog catalog ,
56
- bool hasHeader = TextLoader . DefaultArguments . HasHeader ,
57
- char separatorChar = TextLoader . DefaultArguments . Separator ,
58
- bool allowQuotedStrings = TextLoader . DefaultArguments . AllowQuoting ,
59
- bool supportSparse = TextLoader . DefaultArguments . AllowSparse ,
60
- bool trimWhitespace = TextLoader . DefaultArguments . TrimWhitespace )
56
+ bool hasHeader = TextLoader . Defaults . HasHeader ,
57
+ char separatorChar = TextLoader . Defaults . Separator ,
58
+ bool allowQuotedStrings = TextLoader . Defaults . AllowQuoting ,
59
+ bool supportSparse = TextLoader . Defaults . AllowSparse ,
60
+ bool trimWhitespace = TextLoader . Defaults . TrimWhitespace )
61
61
=> TextLoader . CreateTextReader < TInput > ( CatalogUtils . GetEnvironment ( catalog ) , hasHeader , separatorChar , allowQuotedStrings , supportSparse , trimWhitespace ) ;
62
62
63
63
/// <summary>
@@ -72,8 +72,8 @@ public static TextLoader CreateTextLoader<TInput>(this DataOperationsCatalog cat
72
72
public static IDataView ReadFromTextFile ( this DataOperationsCatalog catalog ,
73
73
string path ,
74
74
TextLoader . Column [ ] columns ,
75
- bool hasHeader = TextLoader . DefaultArguments . HasHeader ,
76
- char separatorChar = TextLoader . DefaultArguments . Separator )
75
+ bool hasHeader = TextLoader . Defaults . HasHeader ,
76
+ char separatorChar = TextLoader . Defaults . Separator )
77
77
{
78
78
Contracts . CheckNonEmpty ( path , nameof ( path ) ) ;
79
79
@@ -104,11 +104,11 @@ public static IDataView ReadFromTextFile(this DataOperationsCatalog catalog,
104
104
/// <returns>The data view.</returns>
105
105
public static IDataView ReadFromTextFile < TInput > ( this DataOperationsCatalog catalog ,
106
106
string path ,
107
- bool hasHeader = TextLoader . DefaultArguments . HasHeader ,
108
- char separatorChar = TextLoader . DefaultArguments . Separator ,
109
- bool allowQuotedStrings = TextLoader . DefaultArguments . AllowQuoting ,
110
- bool supportSparse = TextLoader . DefaultArguments . AllowSparse ,
111
- bool trimWhitespace = TextLoader . DefaultArguments . TrimWhitespace )
107
+ bool hasHeader = TextLoader . Defaults . HasHeader ,
108
+ char separatorChar = TextLoader . Defaults . Separator ,
109
+ bool allowQuotedStrings = TextLoader . Defaults . AllowQuoting ,
110
+ bool supportSparse = TextLoader . Defaults . AllowSparse ,
111
+ bool trimWhitespace = TextLoader . Defaults . TrimWhitespace )
112
112
{
113
113
Contracts . CheckNonEmpty ( path , nameof ( path ) ) ;
114
114
@@ -147,8 +147,8 @@ public static IDataView ReadFromTextFile(this DataOperationsCatalog catalog, str
147
147
public static void SaveAsText ( this DataOperationsCatalog catalog ,
148
148
IDataView data ,
149
149
Stream stream ,
150
- char separatorChar = TextLoader . DefaultArguments . Separator ,
151
- bool headerRow = TextLoader . DefaultArguments . HasHeader ,
150
+ char separatorChar = TextLoader . Defaults . Separator ,
151
+ bool headerRow = TextLoader . Defaults . HasHeader ,
152
152
bool schema = true ,
153
153
bool keepHidden = false )
154
154
{
0 commit comments