SchemaAnnotationsExtensions.HasKeyValues Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.