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

Returned by Delver API in Snippet.debug_info.

Attributes

  • goldHighlightSentenceIndices (type: list(integer()), default: nil) - Which highlights have sentence overlap with gold snippets. Not ordered. Might only be set for the first gold highlight.
  • highlightIdxToOverlap (type: map(), default: nil) - Map of highlight index to best overlap with any gold snippet [0,1].
  • highlightIdxToSentenceOverlap (type: map(), default: nil) - Map of highlight index to best overlap with any gold sentence [0,1].
  • isGold (type: boolean(), default: nil) - Not set by server; only used by certain evals. Might only be set for the first gold snippet.
  • offsetWithinSection (type: integer(), default: nil) - Byte index of text within the full section text (or within title).
  • sectionIndex (type: integer(), default: nil) - Section within the document. -1 if title.
  • sectionIrScore (type: number(), default: nil) - IR score of the section the snippet is coming from.
  • snippetBleuScore (type: number(), default: nil) - BLEU score for the entire snippet.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.NlpSciencelitRetrievalSnippetDebugInfo{
    goldHighlightSentenceIndices: [integer()] | nil,
    highlightIdxToOverlap: map() | nil,
    highlightIdxToSentenceOverlap: map() | nil,
    isGold: boolean() | nil,
    offsetWithinSection: integer() | nil,
    sectionIndex: integer() | nil,
    sectionIrScore: number() | nil,
    snippetBleuScore: number() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.