RepositoryAnnotationsMustangSentimentSnippetAnnotations

GoogleApi.ContentWarehouse.V1.Model.RepositoryAnnotationsMustangSentimentSnippetAnnotations


Table of Contents ▼

Jump to a specific part of the page:

Description

A conceptual structure for storing sentiment snippet information in mustang. Essentially an adaptation of PhraseAnnotationProperties from //repository/annotations/proto/annotations.proto.

Attributes List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

  1. deprecatedMagnitude (type: number(), default: nil)
    - Deprecated: use snippet_score instead
  2. deprecatedPolarity (type: number(), default: nil)
    - Deprecated: use snippet_score instead
  3. end (type: integer(), default: nil)
    -
  4. isTruncated (type: boolean(), default: nil)
    -
  5. phraseType (type: String.t, default: nil)
    -
  6. snippetScore (type: integer(), default: nil)
    -
  7. snippetText (type: String.t, default: nil)
    - This protobuffer is serving double duty as both a Mustang attachment and the response proto that gets returned by Mustang in the WWWSnippetResponse's info MessageSet. When stored as an attachment, this field will always be empty. However, when returned with the WWWSnippetResponse, Mustang will print and store the actual sentiment snippet's text here.
  8. start (type: integer(), default: nil)
    - begin and end are token offsets.

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.RepositoryAnnotationsMustangSentimentSnippetAnnotations{
deprecatedMagnitude: number() | nil,
deprecatedPolarity: number() | nil,
end: integer() | nil,
isTruncated: boolean() | nil,
phraseType: String.t() | nil,
snippetScore: integer() | nil,
snippetText: String.t() | nil,
start: integer() | nil
}

Function

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

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.RepositoryAnnotationsMustangSentimentSnippetAnnotations