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] ¶
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.