@@ -99,8 +99,8 @@ public sealed class Options : TransformInputBase
99
99
[ Argument ( ArgumentType . Multiple , HelpText = "Use stop remover or not." , ShortName = "remover" , SortOrder = 4 ) ]
100
100
public bool UsePredefinedStopWordRemover = false ;
101
101
102
- [ Argument ( ArgumentType . AtMostOnce , HelpText = "Casing text using the rules of the invariant culture." , ShortName = "case" , SortOrder = 5 ) ]
103
- public CaseMode TextCase = TextNormalizingEstimator . Defaults . Mode ;
102
+ [ Argument ( ArgumentType . AtMostOnce , HelpText = "Casing text using the rules of the invariant culture." , Name = "TextCase" , ShortName = "case" , SortOrder = 5 ) ]
103
+ public CaseMode CaseMode = TextNormalizingEstimator . Defaults . Mode ;
104
104
105
105
[ Argument ( ArgumentType . AtMostOnce , HelpText = "Whether to keep diacritical marks or remove them." , ShortName = "diac" , SortOrder = 6 ) ]
106
106
public bool KeepDiacritics = TextNormalizingEstimator . Defaults . KeepDiacritics ;
@@ -181,8 +181,8 @@ public WordBagEstimator.Options CharFeatureExtractor
181
181
}
182
182
}
183
183
184
- [ Argument ( ArgumentType . AtMostOnce , HelpText = "Normalize vectors (rows) individually by rescaling them to unit norm." , ShortName = "norm" , SortOrder = 13 ) ]
185
- public NormFunction VectorNormalizer = NormFunction . L2 ;
184
+ [ Argument ( ArgumentType . AtMostOnce , HelpText = "Normalize vectors (rows) individually by rescaling them to unit norm." , Name = "VectorNormalizer" , ShortName = "norm" , SortOrder = 13 ) ]
185
+ public NormFunction Norm = NormFunction . L2 ;
186
186
187
187
public Options ( )
188
188
{
@@ -193,7 +193,7 @@ public Options()
193
193
194
194
internal readonly string OutputColumn ;
195
195
private readonly string [ ] _inputColumns ;
196
- internal IReadOnlyCollection < string > InputColumns => _inputColumns . AsReadOnly ( ) ;
196
+ private IReadOnlyCollection < string > InputColumns => _inputColumns . AsReadOnly ( ) ;
197
197
internal Options OptionalSettings { get ; }
198
198
199
199
// These parameters are hardcoded for now.
@@ -288,13 +288,13 @@ public TransformApplierParams(TextFeaturizingEstimator parent)
288
288
{
289
289
var host = parent . _host ;
290
290
host . Check ( Enum . IsDefined ( typeof ( Language ) , parent . OptionalSettings . Language ) ) ;
291
- host . Check ( Enum . IsDefined ( typeof ( CaseMode ) , parent . OptionalSettings . TextCase ) ) ;
291
+ host . Check ( Enum . IsDefined ( typeof ( CaseMode ) , parent . OptionalSettings . CaseMode ) ) ;
292
292
WordExtractorFactory = parent . _wordFeatureExtractor ? . CreateComponent ( host , parent . _dictionary ) ;
293
293
CharExtractorFactory = parent . _charFeatureExtractor ? . CreateComponent ( host , parent . _dictionary ) ;
294
- VectorNormalizer = parent . OptionalSettings . VectorNormalizer ;
294
+ VectorNormalizer = parent . OptionalSettings . Norm ;
295
295
Language = parent . OptionalSettings . Language ;
296
296
UsePredefinedStopWordRemover = parent . OptionalSettings . UsePredefinedStopWordRemover ;
297
- TextCase = parent . OptionalSettings . TextCase ;
297
+ TextCase = parent . OptionalSettings . CaseMode ;
298
298
KeepDiacritics = parent . OptionalSettings . KeepDiacritics ;
299
299
KeepPunctuations = parent . OptionalSettings . KeepPunctuations ;
300
300
KeepNumbers = parent . OptionalSettings . KeepNumbers ;
@@ -545,7 +545,7 @@ public SchemaShape GetOutputSchema(SchemaShape inputSchema)
545
545
546
546
var metadata = new List < SchemaShape . Column > ( 2 ) ;
547
547
metadata . Add ( new SchemaShape . Column ( AnnotationUtils . Kinds . SlotNames , SchemaShape . Column . VectorKind . Vector , TextDataViewType . Instance , false ) ) ;
548
- if ( OptionalSettings . VectorNormalizer != NormFunction . None )
548
+ if ( OptionalSettings . Norm != NormFunction . None )
549
549
metadata . Add ( new SchemaShape . Column ( AnnotationUtils . Kinds . IsNormalized , SchemaShape . Column . VectorKind . Scalar , BooleanDataViewType . Instance , false ) ) ;
550
550
551
551
result [ OutputColumn ] = new SchemaShape . Column ( OutputColumn , SchemaShape . Column . VectorKind . Vector , NumberDataViewType . Single , false ,
0 commit comments