View Source GoogleApi.AIPlatform.V1.Model.NlpSaftLanguageSpan (google_api_ai_platform v0.3.0)

Attributes

  • end (type: integer(), default: nil) -
  • languageCode (type: String.t, default: nil) - A BCP 47 language code for this span.
  • locales (type: GoogleApi.AIPlatform.V1.Model.NlpSaftLangIdLocalesResult.t, default: nil) - Optional field containing any information that was predicted about the specific locale(s) of the span.
  • probability (type: number(), default: nil) - A probability associated with this prediction.
  • start (type: integer(), default: nil) - Start and end byte offsets, inclusive, within the given input string. A value of -1 implies that this field is not set. Both fields must either be set with a nonnegative value or both are unset. If both are unset then this LanguageSpan applies to the entire input.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AIPlatform.V1.Model.NlpSaftLanguageSpan{
  end: integer() | nil,
  languageCode: String.t() | nil,
  locales: GoogleApi.AIPlatform.V1.Model.NlpSaftLangIdLocalesResult.t() | nil,
  probability: number() | nil,
  start: integer() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.