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

Next ID: 9

Attributes

  • evalData (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingAnnotationEvalData.t, default: nil) - Span info of the annotation - mostly used for evaluation purpose. Note: this data must never be used outside Aqua because it relies on the internal tokenization used in Aqua that could change over time.
  • fractionNumber (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingNumberFractionNumber.t, default: nil) -
  • isSpelledOut (type: boolean(), default: nil) - An optional field that holds whether the number_type number is a normalized spelled-out number or not. This field will not be set in cases when this information is not available.
  • modifier (type: String.t, default: nil) - NumberModifier is used to capture when the expression is not an absolute number, but a number expression to represent an increase/decrease/comparison. E.g. [10 more percent], [5 less].
  • normalizedValue (type: String.t, default: nil) - Contains a normalized string representation of the numeric value that has: No digit grouping delimiter (e.g. "," in english). Decimal mark (if present) as "." (dot). For fraction_number, this contains the floating point representation of the fraction. The number of digits after the decimal point is defined in the precision field of fraction_number.proto.
  • rawText (type: String.t, default: nil) - The raw text of the annotation.
  • simpleNumber (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingNumberSimpleNumber.t, default: nil) -
  • spelledOutType (type: String.t, default: nil) - We expect this field to be set only when is_spelled_out is true.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingNumberNumber{
  evalData:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingAnnotationEvalData.t()
    | nil,
  fractionNumber:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingNumberFractionNumber.t()
    | nil,
  isSpelledOut: boolean() | nil,
  modifier: String.t() | nil,
  normalizedValue: String.t() | nil,
  rawText: String.t() | nil,
  simpleNumber:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingNumberSimpleNumber.t()
    | nil,
  spelledOutType: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.