Share via


SchemaAnnotationsExtensions.HasKeyValues Method

Definition

Returns true if the input column is of VectorDataViewType, and that has SlotNames annotation of a VectorDataViewType whose ItemType is of TextDataViewType, and further whose Size matches this input vector size.

public static bool HasKeyValues (this Microsoft.ML.DataViewSchema.Column column, Microsoft.ML.Data.PrimitiveDataViewType keyValueItemType = default);
static member HasKeyValues : Microsoft.ML.DataViewSchema.Column * Microsoft.ML.Data.PrimitiveDataViewType -> bool
<Extension()>
Public Function HasKeyValues (column As DataViewSchema.Column, Optional keyValueItemType As PrimitiveDataViewType = Nothing) As Boolean

Parameters

column
DataViewSchema.Column

The column whose Annotations will be queried.

keyValueItemType
PrimitiveDataViewType

The type of the individual key-values to query. A common, though not universal, type to provide is Instance, so if left unspecified this will be assumed to have the value Instance.

Returns

Applies to

See also