Skip to main content

synonyms

Creates, updates, deletes, gets or lists a synonyms resource.

Overview

Namesynonyms
TypeResource
Idazure.ai_language.synonyms

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
alterationsarrayCollection of word alterations. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_synonymsselectproject_name, endpointtop, skip, maxpagesizeGets all the synonyms of a project.
update_synonymsupdateproject_name, endpoint, valueUpdates all the synonyms of a project.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client Endpoint parameter. (default: )
project_namestringThe name of the project to use. Required.
maxpagesizeinteger
skipintegerAn offset into the collection of the first resource to be returned. Default value is None.
topintegerThe maximum number of resources to return from the collection. Default value is None.

SELECT examples

Gets all the synonyms of a project.

SELECT
alterations
FROM azure.ai_language.synonyms
WHERE project_name = '{{ project_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND top = '{{ top }}'
AND skip = '{{ skip }}'
AND maxpagesize = '{{ maxpagesize }}'
;

UPDATE examples

Updates all the synonyms of a project.

UPDATE azure.ai_language.synonyms
SET
value = '{{ value }}',
nextLink = '{{ nextLink }}'
WHERE
project_name = '{{ project_name }}' --required
AND endpoint = '{{ endpoint }}' --required
AND value = '{{ value }}' --required;