共用方式為


AnalyzedDocument 類別

物件,描述檔的位置和語意內容。

繼承
builtins.object
AnalyzedDocument

建構函式

AnalyzedDocument(**kwargs: Any)

方法

from_dict

將 AnalyzedDocument 圖形中的聽寫轉換成模型本身。

to_dict

會傳回分析Document 的聽寫標記法。

from_dict

將 AnalyzedDocument 圖形中的聽寫轉換成模型本身。

from_dict(data: Dict) -> AnalyzedDocument

參數

名稱 Description
data
必要

分析Document 圖形中的字典。

傳回

類型 Description

分析Document

to_dict

會傳回分析Document 的聽寫標記法。

to_dict() -> Dict

傳回

類型 Description

dict

屬性

bounding_regions

涵蓋檔的周框區域。

bounding_regions: List[BoundingRegion] | None

confidence

正確擷取檔信賴度。

confidence: float

doc_type

已分析的檔案類型。

doc_type: str

fields

具名域值的字典。

fields: Dict[str, DocumentField] | None

spans

以讀取順序串連內容的檔位置。

spans: List[DocumentSpan]