translation-En2De

作者 Tanhim · 下载 188 · 点赞 4 · 更新 2023-10-31

translation

English to German Translation

Model Name: Tanhim/translation-En2De
language: German or Deutsch
thumbnail: https://huggingface.co/Tanhim/translation-En2De

How to use

You can use this model directly with a pipeline for machine translation. Since the generation relies on some randomness, I set a seed for reproducibility:

>>> from transformers import pipeline, set_seed
>>> text_En2De= pipeline('translation', model='Tanhim/translation-En2De', tokenizer='Tanhim/translation-En2De')
>>> set_seed(42)
>>> text_En2De("My name is Karl and I live in Aachen")

beta version