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

An N-gram context encountered on the document.

Attributes

  • mention (type: list(GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefNgramMention.t), default: nil) - The entities that were annotated on the context
  • text (type: String.t, default: nil) - The context (original) text.
  • weight (type: number(), default: nil) - The weight of the context on the document; depends on how many times we saw the string in the document.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefNgramContext{
  mention:
    [GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefNgramMention.t()] | nil,
  text: String.t() | nil,
  weight: number() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.