Voting helps other researchers find interesting modules.
A token represents an ngram with relevant information about it. If the token is a context phrase, it will have a prior score associated with it. The prior is computed via knowledge/answers/query_generalization/ word_prior/word_prior_from_examples_lib.cc, and ranges between 0 and 1. Stopwords and intent tokens (primary and component) have a score of 1.0.
evalData
GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingAnnotationEvalData.t
nil
ngram
String.t
parsedDueToExperiment
list(String.t)
prior
number()
provenance
provenanceId
provenanceLanguage
synonyms
list(GoogleApi.ContentWarehouse.V1.Model.KnowledgeAnswersIntentQueryTokenSynonym.t)
Unwrap a decoded JSON object into its complex fields.
@type t() :: %GoogleApi.ContentWarehouse.V1.Model.KnowledgeAnswersIntentQueryToken{ evalData: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingAnnotationEvalData.t() | nil, ngram: String.t() | nil, parsedDueToExperiment: [String.t()] | nil, prior: number() | nil, provenance: String.t() | nil, provenanceId: [String.t()] | nil, provenanceLanguage: String.t() | nil, synonyms: [ GoogleApi.ContentWarehouse.V1.Model.KnowledgeAnswersIntentQueryTokenSynonym.t() ] | nil }
@spec decode(struct(), keyword()) :: struct()