emend_translate {emend} | R Documentation |
Translate text from one language to another.
Description
Translate text from one language to another.
Usage
emend_translate(text, to = "English", chat = get_default_chat())
Arguments
text |
The text to translate. |
to |
The language to translate to. The default is "English". |
chat |
An ellmer Chat object. |
Value
A character vector of translated text.
Examples
chat <- ellmer::chat_ollama(model = "llama3.1:8b", seed = 0, echo = "none")
emend_translate(c("\u733F\u3082\u6728\u304B\u3089\u843D\u3061\u308B",
"\u4F60\u597D", "bon appetit"), chat = chat)
[Package emend version 0.1.0 Index]