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

SalientTerm can be two things depending on where this message is. When right under a SalientTermSet, it is a normalized term and weight pair, along with other term-level data. When under another SalientTerm message, it is a non-normalized original term (see original_term field).

Attributes

  • idf (type: number(), default: nil) - idf of the original_term. Used by Accumulator2. This field is only available in debug mode.
  • label (type: String.t, default: nil) - label can be two things depending on where this message is. When right under a SalientTermSet, it is the normalized term returned by quality_salient_terms::utils::NormalizeTerm() from salient_terms_utils.h. When under another SalientTerm message, it is the original term as found in a signal (see original_term field).
  • originalTerm (type: list(GoogleApi.ContentWarehouse.V1.Model.QualitySalientTermsSalientTerm.t), default: nil) - original_term are the different ways we found this normalized term in the signals. They are in increasing idf order (the most common version first). An empty string means that this original term is the same as the label field in the parent SalientTerm message. NOTE: Please do not access this field directly. Use quality_salient_terms::utils::OriginalTermsIterator from salient_terms_utils.h instead.
  • salience (type: number(), default: nil) - salience is the importance of the term as a descriptor in [0, 1] (the higher the more important). This field takes precedence over weight field below. NOTE: Please do not access this field directly. Use quality_salient_terms::utils::GetSalience() from salient_terms_utils.h instead.
  • signalTerm (type: list(GoogleApi.ContentWarehouse.V1.Model.QualitySalientTermsSignalTermData.t), default: nil) - signal_term contains extra signal-specific (e.g., body, anchors, clicks) data for this term.
  • virtualTf (type: number(), default: nil) - virtual_tf is the accumulated corrected term frequency from all the signals. This field is only available in debug mode.
  • weight (type: integer(), default: nil) - weight is the importance of the term as a descriptor in [0, 100] (the higher the more important). NOTE: Please do not access this field directly. Use quality_salient_terms::utils::GetSalience() from salient_terms_utils.h instead. DEPRECATED: prefer salience field above.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.QualitySalientTermsSalientTerm{
  idf: number() | nil,
  label: String.t() | nil,
  originalTerm: [t()] | nil,
  salience: number() | nil,
  signalTerm:
    [GoogleApi.ContentWarehouse.V1.Model.QualitySalientTermsSignalTermData.t()]
    | nil,
  virtualTf: number() | nil,
  weight: integer() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.