You are viewing documentation about an older version (1.6.1). View latest version

snowflake.cortex.Translate

snowflake.cortex.Translate(text: Union[str, Column], from_language: Union[str, Column], to_language: Union[str, Column], session: Optional[Session] = None) Union[str, Column]

Translate calls into the LLM inference service to perform translation.

Parameters:
  • text – A Column of strings to translate.

  • from_language – A Column of input languages.

  • to_language – A Column of output languages.

  • session – The snowpark session to use. Will be inferred by context if not specified.

Returns:

A column of string translations.