You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Microsoft.ML.Data/DataLoadSave/Text/TextLoader.cs
+5-28Lines changed: 5 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -1085,30 +1085,6 @@ private bool HasHeader
1085
1085
privatereadonlyIHost_host;
1086
1086
privateconststringRegistrationName="TextLoader";
1087
1087
1088
-
/// <summary>
1089
-
/// Loads a text file into an <see cref="IDataView"/>. Supports basic mapping from input columns to IDataView columns.
1090
-
/// </summary>
1091
-
/// <param name="env">The environment to use.</param>
1092
-
/// <param name="columns">Defines a mapping between input columns in the file and IDataView columns.</param>
1093
-
/// <param name="separatorChar"> The character used as separator between data points in a row. By default the tab character is used as separator.</param>
1094
-
/// <param name="hasHeader">Whether the file has a header.</param>
1095
-
/// <param name="allowSparse">Whether the file can contain numerical vectors in sparse format.</param>
1096
-
/// <param name="allowQuoting">Whether the content of a column can be parsed from a string starting and ending with quote.</param>
1097
-
/// <param name="dataSample">Allows to expose items that can be used for reading.</param>
Copy file name to clipboardExpand all lines: src/Microsoft.ML.Data/DataLoadSave/Text/TextLoaderSaverCatalog.cs
+63-25Lines changed: 63 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -18,17 +18,31 @@ public static class TextLoaderSaverCatalog
18
18
/// <param name="columns">Array of columns <see cref="TextLoader.Column"/> defining the schema.</param>
19
19
/// <param name="separatorChar">The character used as separator between data points in a row. By default the tab character is used as separator.</param>
20
20
/// <param name="hasHeader">Whether the file has a header.</param>
21
-
/// <param name="allowSparse">Whether the file can contain numerical vectors in sparse format.</param>
22
-
/// <param name="allowQuoting">Whether the file can contain column defined by a quoted string.</param>
23
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
+
/// <param name="allowQuoting">Whether the file can contain column defined by a quoted string.</param>
23
+
/// <param name="trimWhitespace">Remove trailing whitespace from lines</param>
24
+
/// <param name="allowSparse">Whether the file can contain numerical vectors in sparse format.</param>
/// <param name="separatorChar">Column separator character. Default is '\t'</param>
49
63
/// <param name="hasHeader">Does the file contains header?</param>
64
+
/// <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>
50
65
/// <param name="allowQuoting">Whether the input may include quoted values,
51
66
/// which can contain separator characters, colons,
52
67
/// and distinguish empty values from missing values. When true, consecutive separators
53
68
/// denote a missing value and an empty value is denoted by \"\".
54
69
/// When false, consecutive separators denote an empty value.</param>
70
+
/// <param name="trimWhitespace">Remove trailing whitespace from lines</param>
55
71
/// <param name="allowSparse">Whether the input may include sparse representations for example,
56
72
/// if one of the row contains "5 2:6 4:3" that's mean there are 5 columns all zero
57
73
/// except for 3rd and 5th columns which have values 6 and 3</param>
58
-
/// <param name="trimWhitespace">Remove trailing whitespace from lines</param>
/// <param name="path">The path to the file.</param>
71
89
/// <param name="columns">The columns of the schema.</param>
72
-
/// <param name="hasHeader">Whether the file has a header.</param>
73
90
/// <param name="separatorChar">The character used as separator between data points in a row. By default the tab character is used as separator.</param>
74
-
/// <param name="path">The path to the file.</param>
91
+
/// <param name="hasHeader">Whether the file has a header.</param>
92
+
/// <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>
93
+
/// <param name="allowQuoting">Whether the file can contain column defined by a quoted string.</param>
94
+
/// <param name="trimWhitespace">Remove trailing whitespace from lines</param>
95
+
/// <param name="allowSparse">Whether the file can contain numerical vectors in sparse format.</param>
/// <param name="hasHeader">Does the file contains header?</param>
127
+
/// <param name="path">The path to the file.</param>
97
128
/// <param name="separatorChar">Column separator character. Default is '\t'</param>
129
+
/// <param name="hasHeader">Does the file contains header?</param>
130
+
/// <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>
98
131
/// <param name="allowQuoting">Whether the input may include quoted values,
99
132
/// which can contain separator characters, colons,
100
133
/// and distinguish empty values from missing values. When true, consecutive separators
101
134
/// denote a missing value and an empty value is denoted by \"\".
102
135
/// When false, consecutive separators denote an empty value.</param>
136
+
/// <param name="trimWhitespace">Remove trailing whitespace from lines</param>
103
137
/// <param name="allowSparse">Whether the input may include sparse representations for example,
104
138
/// if one of the row contains "5 2:6 4:3" that's mean there are 5 columns all zero
105
139
/// except for 3rd and 5th columns which have values 6 and 3</param>
106
-
/// <param name="trimWhitespace">Remove trailing whitespace from lines</param>
107
-
/// <param name="path">The path to the file.</param>
/// <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>
0 commit comments