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

Attributes

  • instructionStartMs (type: integer(), default: nil) - The timestamp of when the first token in the token sequence is spoken in the video.
  • instructionText (type: String.t, default: nil) - The instruction step text coming from the web document. Currently only populated for best_description_and_instruction_anchors_match_info.
  • referenceText (type: String.t, default: nil) - The reference text used for matching against token_sequence (e.g. description anchor text or instruction step text).
  • referenceTextTimeMs (type: integer(), default: nil) - The timestamp of when the reference text is pointing in the video (e.g. this is the description anchor timestamp when reference_text is description anchor. For instruction step used as the reference, no timestamps exists and thus this field is not populated).
  • scoringMethodName (type: String.t, default: nil) - Similarity scorer name.
  • similarityScore (type: number(), default: nil) - The similarity score given by the scoring method specified by the message scoring_method_name.
  • stepIndex (type: integer(), default: nil) - The index of the step in HowToInstructions that this token_sequence corresponds to.
  • tokenSequence (type: String.t, default: nil) - The matched token sequence text in ASR.
  • tokenSequenceLength (type: integer(), default: nil) - The length of the tokens in the token sequence.
  • tokenStartPos (type: integer(), default: nil) - The token offset of the matched token sequence from the beginning of the document.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.VideoContentSearchSimilarityMatchInfo{
    instructionStartMs: integer() | nil,
    instructionText: String.t() | nil,
    referenceText: String.t() | nil,
    referenceTextTimeMs: integer() | nil,
    scoringMethodName: String.t() | nil,
    similarityScore: number() | nil,
    stepIndex: integer() | nil,
    tokenSequence: String.t() | nil,
    tokenSequenceLength: integer() | nil,
    tokenStartPos: integer() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.