Skip to content

Commit fdd08cf

Browse files
committed
tab to \t
1 parent a537d53 commit fdd08cf

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Microsoft.ML.Data/DataLoadSave/Text/TextLoaderSaverCatalog.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public static IDataView ReadFromTextFile(this DataOperationsCatalog catalog, str
152152
public static void SaveAsText(this DataOperationsCatalog catalog,
153153
IDataView data,
154154
Stream stream,
155-
char separatorChar = TextLoader.Defaults.Separator,
155+
char separatorChar = TextSaver.Defaults.Separator,
156156
bool headerRow = TextSaver.Defaults.OutputHeader,
157157
bool schema = TextSaver.Defaults.OutputSchema,
158158
bool keepHidden = false,

src/Microsoft.ML.Data/DataLoadSave/Text/TextSaver.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ namespace Microsoft.ML.Data.IO
2222
[BestFriend]
2323
internal sealed class TextSaver : IDataSaver
2424
{
25-
internal static class DefaultArguments
25+
internal static class Defaults
2626
{
27-
internal const string Separator = "tab";
27+
internal const char Separator = '\t';
2828
internal const bool ForceDense = false;
2929
internal const bool OutputSchema = true;
3030
internal const bool OutputHeader = true;
@@ -34,21 +34,21 @@ internal static class DefaultArguments
3434
public sealed class Arguments
3535
{
3636
[Argument(ArgumentType.AtMostOnce, HelpText = "Separator", ShortName = "sep")]
37-
public string Separator = DefaultArguments.Separator;
37+
public string Separator = Defaults.Separator.ToString();
3838

3939
[Argument(ArgumentType.AtMostOnce, HelpText = "Force dense format", ShortName = "dense")]
40-
public bool Dense = DefaultArguments.ForceDense;
40+
public bool Dense = Defaults.ForceDense;
4141

4242
// REVIEW: This and the corresponding BinarySaver option should be removed,
4343
// with the silence being handled, somehow, at the environment level. (Task 6158846.)
4444
[Argument(ArgumentType.LastOccurenceWins, HelpText = "Suppress any info output (not warnings or errors)", Hide = true)]
4545
public bool Silent;
4646

4747
[Argument(ArgumentType.AtMostOnce, HelpText = "Output the comment containing the loader settings", ShortName = "schema")]
48-
public bool OutputSchema = DefaultArguments.OutputSchema;
48+
public bool OutputSchema = Defaults.OutputSchema;
4949

5050
[Argument(ArgumentType.AtMostOnce, HelpText = "Output the header", ShortName = "header")]
51-
public bool OutputHeader = DefaultArguments.OutputHeader;
51+
public bool OutputHeader = Defaults.OutputHeader;
5252
}
5353

5454
internal const string Summary = "Writes data into a text file.";

0 commit comments

Comments
 (0)