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

Detailed statistics about the annotations in the document. Contains, for example, the number of ranges with name matches, the number of entities matched, and the number of entities with mentions. This information can be used to tune some WebRef-internal scoring functions based on existing annotations (e.g., document-length normalization in global link support). Next available tag: 10.

Attributes

  • docWeight (type: number(), default: nil) - The relative weight of the document, used when aggregating information from multiple documents.
  • ngramContext (type: list(GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefNgramContext.t), default: nil) - Extracted n-grams context scores (in cdoc language, weighted by doc_weight) output if webref_populate_annotation_ngrams is enabled.
  • numCandidates (type: String.t, default: nil) - The total number of candidates.
  • numConceptsWithCandidates (type: String.t, default: nil) - The total number of concepts with at least 1 candidate.
  • numConceptsWithMentions (type: String.t, default: nil) - The total number of concepts with at least 1 mention.
  • numRangesWithCandidates (type: String.t, default: nil) - The total number of RangeData objects with at least one candidate.
  • statsPerType (type: list(GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefAnnotationStatsPerType.t), default: nil) - Statistics for each token type.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefWebrefAnnotationStats{
    docWeight: number() | nil,
    ngramContext:
      [GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefNgramContext.t()]
      | nil,
    numCandidates: String.t() | nil,
    numConceptsWithCandidates: String.t() | nil,
    numConceptsWithMentions: String.t() | nil,
    numRangesWithCandidates: String.t() | nil,
    statsPerType:
      [
        GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefAnnotationStatsPerType.t()
      ]
      | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.