1 instantiation of TextDataViewType
Microsoft.ML.DataView (1)
353 references to TextDataViewType
Microsoft.Data.Analysis (4)
Microsoft.ML.AutoML (6)
Microsoft.ML.AutoML.Tests (23)
TransformInferenceTests.cs (14)
27new DatasetColumnInfo("Categorical1", TextDataViewType.Instance, ColumnPurpose.CategoricalFeature, new ColumnDimensions(7, null)),
28new DatasetColumnInfo("Categorical2", TextDataViewType.Instance, ColumnPurpose.CategoricalFeature, new ColumnDimensions(7, null)),
29new DatasetColumnInfo("LargeCat1", TextDataViewType.Instance, ColumnPurpose.CategoricalFeature, new ColumnDimensions(500, null)),
30new DatasetColumnInfo("LargeCat2", TextDataViewType.Instance, ColumnPurpose.CategoricalFeature, new ColumnDimensions(500, null)),
83new DatasetColumnInfo("Categorical1", TextDataViewType.Instance, ColumnPurpose.CategoricalFeature, new ColumnDimensions(7, null)),
84new DatasetColumnInfo("Categorical2", TextDataViewType.Instance, ColumnPurpose.CategoricalFeature, new ColumnDimensions(7, null)),
85new DatasetColumnInfo("LargeCat1", TextDataViewType.Instance, ColumnPurpose.CategoricalFeature, new ColumnDimensions(500, null)),
86new DatasetColumnInfo("LargeCat2", TextDataViewType.Instance, ColumnPurpose.CategoricalFeature, new ColumnDimensions(500, null)),
139new DatasetColumnInfo("Categorical1", TextDataViewType.Instance, ColumnPurpose.CategoricalFeature, new ColumnDimensions(7, null)),
140new DatasetColumnInfo("LargeCat1", TextDataViewType.Instance, ColumnPurpose.CategoricalFeature, new ColumnDimensions(500, null)),
325new DatasetColumnInfo("Text", TextDataViewType.Instance, ColumnPurpose.TextFeature, new ColumnDimensions(null, null)),
358new DatasetColumnInfo("Text", TextDataViewType.Instance, ColumnPurpose.TextFeature, new ColumnDimensions(null, null)),
674new DatasetColumnInfo("CustomName", TextDataViewType.Instance, columnPurpose, new ColumnDimensions(null, null)),
685new DatasetColumnInfo("CustomLabel", TextDataViewType.Instance, ColumnPurpose.Label, new ColumnDimensions(null, null)),
Microsoft.ML.Core (13)
Data\AnnotationUtils.cs (9)
145return new VectorDataViewType(TextDataViewType.Instance, size);
270if (columnType is TextDataViewType)
295&& vectorType.ItemType is TextDataViewType;
314&& metaCol.ItemType is TextDataViewType;
345&& metaCol.ItemType == TextDataViewType.Instance;
429cols.Add(new SchemaShape.Column(Kinds.ScoreColumnKind, SchemaShape.Column.VectorKind.Scalar, TextDataViewType.Instance, false));
430cols.Add(new SchemaShape.Column(Kinds.ScoreValueKind, SchemaShape.Column.VectorKind.Scalar, TextDataViewType.Instance, false));
449if (metaCol.ItemType is TextDataViewType)
450cols.Add(new SchemaShape.Column(Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.Instance, false));
Microsoft.ML.Core.Tests (14)
Microsoft.ML.Data (146)
Evaluators\EvaluatorUtils.cs (17)
88if (columnType == null || !(columnType is TextDataViewType))
100return columnType != null && columnType is TextDataViewType;
142if (col.Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.ScoreValueKind)?.Type == TextDataViewType.Instance)
203if (col.Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.ScoreValueKind)?.Type == TextDataViewType.Instance)
223if (type == null || !(type is TextDataViewType))
354if (slotNamesType != null && slotNamesType.Size == size && slotNamesType.ItemType is TextDataViewType)
379return LambdaColumnMapper.Create(env, registrationName, input, inputColName, outputColName, typeSrc, TextDataViewType.Instance,
895ReconcileKeyValues(env, views, keyCol, TextDataViewType.Instance);
901ReconcileVectorKeyValues(env, views, vectorKeyCol, TextDataViewType.Instance);
1028if (slotNamesType != null && slotNamesType.Size == vectorType.Size && slotNamesType.ItemType is TextDataViewType)
1237if (keyValuesType == null || !(keyValuesType.ItemType is TextDataViewType) ||
1259dvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.Instance, stratVals);
1260weightedDvBldr?.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.Instance, stratVals);
1271dvBldr.AddColumn(MetricKinds.ColumnNames.FoldIndex, TextDataViewType.Instance, foldVals);
1272weightedDvBldr?.AddColumn(MetricKinds.ColumnNames.FoldIndex, TextDataViewType.Instance, foldVals);
1394host.Assert(type != null && type.IsKnownSize && type.ItemType is TextDataViewType);
1737if (warningTextColumn != null && warningTextColumn.HasValue && warningTextColumn.Value.Type is TextDataViewType)
Scorers\ScoreSchemaFactory.cs (7)
30metadataBuilder.Add(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.Instance,
32metadataBuilder.Add(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.Instance,
63probabilityMetadataBuilder.Add(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.Instance,
65probabilityMetadataBuilder.Add(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.Instance,
125metadataBuilder.AddKeyValues(keyNames.Length, TextDataViewType.Instance,
127metadataBuilder.Add(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.Instance,
129metadataBuilder.Add(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.Instance,
Transforms\ValueMapping.cs (20)
870TextDataViewType.Instance,
1092if (itemType == TextDataViewType.Instance)
1113var labelEncoderOutput = (typeValue == NumberDataViewType.Single || typeValue == TextDataViewType.Instance || typeValue == NumberDataViewType.Int64) ? dstVariableName :
1126CastInputTo<Int64>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.Instance);
1137if (typeValue is TextDataViewType)
1140CastInputTo<Int32>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.Instance);
1144if (typeValue is TextDataViewType)
1147CastInputTo<Int16>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.Instance);
1151if (typeValue is TextDataViewType)
1154CastInputTo<UInt64>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.Instance);
1158if (typeValue is TextDataViewType)
1161CastInputTo<UInt32>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.Instance);
1165if (typeValue is TextDataViewType)
1168CastInputTo<UInt16>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.Instance);
1174CastInputTo<float>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.Instance);
1185CastInputTo<double>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.Instance);
1189else if (typeKey == TextDataViewType.Instance)
1191if (typeValue == TextDataViewType.Instance)
1200var castOutput = ctx.AddIntermediateVariable(new VectorDataViewType(TextDataViewType.Instance, (int)srcShape[1]), "castOutput");
1258else if (typeValue == TextDataViewType.Instance)
Microsoft.ML.DataView (3)
Microsoft.ML.EntryPoints (3)
Microsoft.ML.Fairlearn (2)
Microsoft.ML.FastTree (1)
Microsoft.ML.ImageAnalytics (4)
Microsoft.ML.IntegrationTests (1)
Microsoft.ML.OnnxTransformer (2)
Microsoft.ML.Parquet (3)
Microsoft.ML.PerformanceTests (3)
Microsoft.ML.Samples (1)
Microsoft.ML.StandardTrainers (1)
Microsoft.ML.TensorFlow (3)
Microsoft.ML.TensorFlow.Tests (6)
Microsoft.ML.TestFramework (1)
Microsoft.ML.TestFrameworkCommon (1)
Microsoft.ML.Tests (8)
Transformers\HashTests.cs (2)
295HashTestCore("".AsMemory(), TextDataViewType.Instance, 0, 0, 0, 0, 0);
296HashTestCore("hello".AsMemory(), TextDataViewType.Instance, 940, 951, 857, 770, 0);
Microsoft.ML.TimeSeries (5)
Microsoft.ML.TorchSharp (37)
AutoFormerV2\ObjectDetectionTrainer.cs (9)
448TextDataViewType.Instance, false));
453TextDataViewType.Instance, false));
455TextDataViewType.Instance, false));
459TextDataViewType.Instance, false));
554TextDataViewType.Instance, false));
556TextDataViewType.Instance, false));
560TextDataViewType.Instance, false));
759meta.Add(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreColumnKind.MulticlassClassification.AsMemory(); });
761meta.Add(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreValueKind.Score.AsMemory(); });
NasBert\NasBertTrainer.cs (12)
330TextDataViewType.Instance, false));
345TextDataViewType.Instance, false));
367if (sentenceCol.ItemType != TextDataViewType.Instance)
369TextDataViewType.Instance.ToString(), sentenceCol.GetTypeString());
385if (sentenceCol2.ItemType != TextDataViewType.Instance)
387TextDataViewType.Instance.ToString(), sentenceCol2.GetTypeString());
404if (sentenceCol2.ItemType != TextDataViewType.Instance)
406TextDataViewType.Instance.ToString(), sentenceCol2.GetTypeString());
423SentenceColumn = new SchemaShape.Column(options.Sentence1ColumnName, SchemaShape.Column.VectorKind.Scalar, TextDataViewType.Instance, false);
424SentenceColumn2 = options.Sentence2ColumnName == default ? default : new SchemaShape.Column(options.Sentence2ColumnName, SchemaShape.Column.VectorKind.Scalar, TextDataViewType.Instance, false);
525meta.Add(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreColumnKind.MulticlassClassification.AsMemory(); });
527meta.Add(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreValueKind.Score.AsMemory(); });
Roberta\QATrainer.cs (16)
513TextDataViewType.Instance, false));
515TextDataViewType.Instance, false));
520TextDataViewType.Instance, false);
535TextDataViewType.Instance.ToString(), contextCol.GetTypeString());
541TextDataViewType.Instance.ToString(), questionCol.GetTypeString());
547TextDataViewType.Instance.ToString(), answerCol.GetTypeString());
599TextDataViewType.Instance, false),
601TextDataViewType.Instance, false),
607TextDataViewType.Instance, false);
619if (contextCol.ItemType != TextDataViewType.Instance)
621TextDataViewType.Instance.ToString(), contextCol.GetTypeString());
625if (questionCol.ItemType != TextDataViewType.Instance)
627TextDataViewType.Instance.ToString(), questionCol.GetTypeString());
741meta.Add(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreColumnKind.MulticlassClassification.AsMemory(); });
743meta.Add(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreValueKind.Score.AsMemory(); });
746info[0] = new DataViewSchema.DetachedColumn(_parent.Options.PredictedAnswerColumnName, new VectorDataViewType(TextDataViewType.Instance));
Microsoft.ML.TorchSharp.Tests (11)
Microsoft.ML.Transforms (50)
Microsoft.ML.Vision (1)