你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
DocumentKeyValuePair 类
表示具有不同字段标签的文档字段的对象 (键) 和字段值 (可能为空) 。
- 继承
-
builtins.objectDocumentKeyValuePair
构造函数
DocumentKeyValuePair(**kwargs: Any)
方法
from_dict |
将 DocumentKeyValuePair 形状中的 dict 转换为模型本身。 |
to_dict |
返回 DocumentKeyValuePair 的 dict 表示形式。 |
from_dict
将 DocumentKeyValuePair 形状中的 dict 转换为模型本身。
from_dict(data: Dict) -> DocumentKeyValuePair
参数
名称 | 说明 |
---|---|
data
必需
|
DocumentKeyValuePair 形状的字典。 |
返回
类型 | 说明 |
---|---|
DocumentKeyValuePair |
to_dict
属性
confidence
正确提取键值对的置信度。
confidence: float
key
键值对的字段标签。
key: DocumentKeyValueElement
value
键值对的字段值。
value: DocumentKeyValueElement | None
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈