get_synonym_dictionary method

get_synonym_dictionary

Retrieves the synonym dictionary.

Obtains the synonym dictionary for the specified shard.

def get_synonym_dictionary(self, shard_index):
    ...
Parameter Type Description
shard_index int The shard index.

Returns: The dictionary.

Example

indices = node.get_shard_indices()
dictionary = indexer.get_synonym_dictionary(indices[0])
if clear_before_adding:
    dictionary.clear()

Aliases

These names call get_synonym_dictionary too, limited to the overloads listed.

Alias Accepts
get_synonym_dictionary_int32 get_synonym_dictionary_int32(shard_index)

See Also