Class SynonymSet (0.7.6)

SynonymSet(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a list of synonyms for a given context. For example a context "sales" could contain:

Synonym 1: sale, invoice, bill, order Synonym 2: money, credit, finance, payment Synonym 3: shipping, freight, transport Each SynonymSets should be disjoint

Attributes

NameDescription
name str
The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}.
context str
This is a freeform field. Example contexts can be "sales," "engineering," "real estate," "accounting," etc. The context can be supplied during search requests.
synonyms MutableSequence[google.cloud.contentwarehouse_v1.types.SynonymSet.Synonym]
List of Synonyms for the context.

Classes

Synonym

Synonym(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a list of words given by the customer All these words are synonyms of each other.