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.
Returns
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for