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.