Represents key information extracted from a document. text (str): The text of the key information. Note that this text may contain `image placeholder` such as `<!-- image -->` "<!-- image0 --> <!-- image1 --> <!-- table0 --> This is the document t
| 4 | |
| 5 | @dataclass |
| 6 | class KeyInformation: |
| 7 | """ |
| 8 | Represents key information extracted from a document. |
| 9 | |
| 10 | text (str): The text of the key information. |
| 11 | Note that this text may contain `image placeholder` such as `<!-- image -->` |
| 12 | "<!-- image0 --> |
| 13 | <!-- image1 --> |
| 14 | <!-- table0 --> |
| 15 | This is the document text." |
| 16 | |
| 17 | resources (List[str, Any]): A list of resources associated with the key information, |
| 18 | including images, tables, or other relevant data. |
| 19 | [{'id': 'doc_file_name@binary_hash@self_ref', 'content': PILImage.Image}, ...] |
| 20 | """ |
| 21 | text: str |
| 22 | |
| 23 | resources: List[Dict[str, Any]] |