View Source GoogleApi.ContentWarehouse.V1.Model.GoodocWordAlternatesAlternate (google_api_content_warehouse v0.4.0)

An alternate word provided by another OCR engine, used for OCR Correction. This iteration only supports simple substitution errors (exhanging one word for another), but with minor modifications (e.g. adding a word count for each alternate), it could support repairing word segmentation and text detection errors.

Attributes

  • OcrEngineId (type: String.t, default: nil) - See Document.Header
  • OcrEngineVersion (type: String.t, default: nil) - See Document.Header
  • Word (type: GoogleApi.ContentWarehouse.V1.Model.GoodocWord.t, default: nil) - In order to compile, this recursive message needs to be optional, even though it's within an optional group.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.GoodocWordAlternatesAlternate{
  OcrEngineId: String.t() | nil,
  OcrEngineVersion: String.t() | nil,
  Word: GoogleApi.ContentWarehouse.V1.Model.GoodocWord.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.