语言

SchemaAnnotationsExtensions.HasKeyValues 方法

定义

返回true输入列是否为 VectorDataViewType,并且具有SlotNames其所属TextDataViewType的ItemType批注VectorDataViewType,并进一步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

参数

column
DataViewSchema.Column

将查询其列 Annotations 。

keyValueItemType
PrimitiveDataViewType

要查询的单个键值的类型。 要提供的常见类型(虽然不是通用类型)是 Instance,因此如果保留未指定,则假定其值为值 Instance。

返回

适用于

另请参阅