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