View Source GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefPerDocRelevanceRatings (google_api_content_warehouse v0.3.0)

Aggregates ratings by url/doc_fp.

Attributes

  • docFp (type: String.t, default: nil) - - In topicality ratings this is Fingerprint2011() of the normalized cdoc. - In query-mention ratings this is a hash of the QueryJoin. - In doc-content-mention ratings this is a hash of a QueryJoin in which the mention rating task has been embedded. -
  • entityNameRating (type: list(GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefEntityNameRatings.t), default: nil) -
  • mentionRating (type: list(GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefMentionRatings.t), default: nil) -
  • taskLevelRating (type: list(GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefPerDocRelevanceRating.t), default: nil) -
  • url (type: String.t, default: nil) - - In topicality ratings this is the url of the document. - In query-mention ratings this is the query in format "en:US:query text". - In doc-content-mention ratings this is %x:%s where %x is the hex doc_fp of the cdoc (TODO(b/139799592) or sometimes the doc_fp below), and %s is the text of the eval range. - In entity-name ratings this is the MID of the entity.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefPerDocRelevanceRatings{
    docFp: String.t() | nil,
    entityNameRating:
      [
        GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefEntityNameRatings.t()
      ]
      | nil,
    mentionRating:
      [GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefMentionRatings.t()]
      | nil,
    taskLevelRating:
      [
        GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefPerDocRelevanceRating.t()
      ]
      | nil,
    url: String.t() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.