@@ -22,9 +22,9 @@ namespace Microsoft.ML.Data.IO
22
22
[ BestFriend ]
23
23
internal sealed class TextSaver : IDataSaver
24
24
{
25
- internal static class DefaultArguments
25
+ internal static class Defaults
26
26
{
27
- internal const string Separator = "tab" ;
27
+ internal const char Separator = ' \t ' ;
28
28
internal const bool ForceDense = false ;
29
29
internal const bool OutputSchema = true ;
30
30
internal const bool OutputHeader = true ;
@@ -34,21 +34,21 @@ internal static class DefaultArguments
34
34
public sealed class Arguments
35
35
{
36
36
[ Argument ( ArgumentType . AtMostOnce , HelpText = "Separator" , ShortName = "sep" ) ]
37
- public string Separator = DefaultArguments . Separator ;
37
+ public string Separator = Defaults . Separator . ToString ( ) ;
38
38
39
39
[ Argument ( ArgumentType . AtMostOnce , HelpText = "Force dense format" , ShortName = "dense" ) ]
40
- public bool Dense = DefaultArguments . ForceDense ;
40
+ public bool Dense = Defaults . ForceDense ;
41
41
42
42
// REVIEW: This and the corresponding BinarySaver option should be removed,
43
43
// with the silence being handled, somehow, at the environment level. (Task 6158846.)
44
44
[ Argument ( ArgumentType . LastOccurenceWins , HelpText = "Suppress any info output (not warnings or errors)" , Hide = true ) ]
45
45
public bool Silent ;
46
46
47
47
[ 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 ;
49
49
50
50
[ Argument ( ArgumentType . AtMostOnce , HelpText = "Output the header" , ShortName = "header" ) ]
51
- public bool OutputHeader = DefaultArguments . OutputHeader ;
51
+ public bool OutputHeader = Defaults . OutputHeader ;
52
52
}
53
53
54
54
internal const string Summary = "Writes data into a text file." ;
0 commit comments