GoogleApi.ContentWarehouse.V1.Model.RepositoryAnnotationsMustangSentimentSnippetAnnotations
Table of Contents ▼
Jump to a specific part of the page:
- Description
- Attribute List
- Attributes
- Type
- Function
- Related links
- Possibly related Modules
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):
Attributes
-
deprecatedMagnitude
(type:number()
, default:nil
)
- Deprecated: use snippet_score instead -
deprecatedPolarity
(type:number()
, default:nil
)
- Deprecated: use snippet_score instead -
end
(type:integer()
, default:nil
)
- -
isTruncated
(type:boolean()
, default:nil
)
- -
phraseType
(type:String.t
, default:nil
)
- -
snippetScore
(type:integer()
, default:nil
)
- -
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. -
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
}
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