GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1Document (google_api_document_ai v0.21.0) View Source

Document represents the canonical document resource in Document Understanding AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document Understanding AI to iterate and optimize for quality.

Attributes

  • content (type: String.t, default: nil) - Optional. Inline document content, represented as a stream of bytes. Note: As with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
  • entities (type: list(GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1DocumentEntity.t), default: nil) - A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.
  • entityRelations (type: list(GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1DocumentEntityRelation.t), default: nil) - Relationship among Document.entities.
  • error (type: GoogleApi.DocumentAI.V1beta2.Model.GoogleRpcStatus.t, default: nil) - Any error that occurred while processing this document.
  • mimeType (type: String.t, default: nil) - An IANA published MIME type (also referred to as media type). For more information, see https://www.iana.org/assignments/media-types/media-types.xhtml.
  • pages (type: list(GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1DocumentPage.t), default: nil) - Visual page layout for the Document.
  • revisions (type: list(GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1DocumentRevision.t), default: nil) - Revision history of this document.
  • shardInfo (type: GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1DocumentShardInfo.t, default: nil) - Information about the sharding if this document is sharded part of a larger document. If the document is not sharded, this message is not specified.
  • text (type: String.t, default: nil) - Optional. UTF-8 encoded text in reading order from the document.
  • textChanges (type: list(GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1DocumentTextChange.t), default: nil) - A list of text corrections made to [Document.text]. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap with each other.
  • textStyles (type: list(GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1DocumentStyle.t), default: nil) - Styles for the Document.text.
  • uri (type: String.t, default: nil) - Optional. Currently supports Google Cloud Storage URI of the form gs://bucket_name/object_name. Object versioning is not supported. See Google Cloud Storage Request URIs for more info.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.