Loading…
Glossary term
Automatically translating text from one language to another.
Machine translation converts text from one language to another. Modern systems use a transformer that reads the source sentence and generates the translation token by token.
Large language models can translate many languages, often well, though quality is weaker for languages with little training data.
Translate with a pipeline
from transformers import pipeline
translate = pipeline("translation_en_to_fr")
print(translate("The weather is nice today."))It breaks down language barriers for communication and information access.