7 writes to Sentence2ColumnName
Microsoft.ML.TorchSharp (6)
NasBert\NerTrainer.cs (2)
95
Sentence2ColumnName
= default,
337
options.
Sentence2ColumnName
= ctx.LoadStringOrNull();
NasBert\SentenceSimilarityTrainer.cs (2)
90
Sentence2ColumnName
= sentence2ColumnName,
249
options.
Sentence2ColumnName
= ctx.LoadStringOrNull();
NasBert\TextClassificationTrainer.cs (2)
92
Sentence2ColumnName
= sentence2ColumnName,
273
options.
Sentence2ColumnName
= ctx.LoadStringOrNull();
Microsoft.ML.TorchSharp.Tests (1)
TextClassificationTests.cs (1)
438
Sentence2ColumnName
= "product_description",
17 references to Sentence2ColumnName
Microsoft.ML.TorchSharp (17)
NasBert\NasBertTrainer.cs (17)
218
if (Parent.BertOptions.
Sentence2ColumnName
!= default)
219
return input.GetRowCursor(input.Schema[Parent.BertOptions.Sentence1ColumnName], input.Schema[Parent.BertOptions.
Sentence2ColumnName
], input.Schema[Parent.Option.LabelColumnName]);
227
Sentence2Getter = Parent.BertOptions.
Sentence2ColumnName
!= default ? cursor.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.BertOptions.
Sentence2ColumnName
]) : default;
381
if (BertOptions.
Sentence2ColumnName
!= default)
383
if (!inputSchema.TryFindColumn(BertOptions.
Sentence2ColumnName
, out var sentenceCol2))
384
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "sentence2", BertOptions.
Sentence2ColumnName
);
386
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "sentence2", BertOptions.
Sentence2ColumnName
,
402
if (!inputSchema.TryFindColumn(BertOptions.
Sentence2ColumnName
, out var sentenceCol2))
403
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "sentence2", BertOptions.
Sentence2ColumnName
);
405
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "sentence2", BertOptions.
Sentence2ColumnName
,
424
SentenceColumn2 = options.
Sentence2ColumnName
== default ? default : new SchemaShape.Column(options.
Sentence2ColumnName
, SchemaShape.Column.VectorKind.Scalar, TextDataViewType.Instance, false);
464
if (BertOptions.
Sentence2ColumnName
!= default || BertOptions.TaskType == BertTaskType.SentenceRegression)
486
ctx.SaveStringOrNull(BertOptions.
Sentence2ColumnName
);
510
if (Parent.BertOptions.
Sentence2ColumnName
!= default || Parent.BertOptions.TaskType == BertTaskType.SentenceRegression)
511
if (inputSchema.TryGetColumnIndex(Parent.BertOptions.
Sentence2ColumnName
, out col))