Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 928 Bytes

File metadata and controls

6 lines (5 loc) · 928 Bytes

Bi-directionally Chinese-English Translation Demo

This repo concisely demonstrates how to integrate a translation tool based on the transformers. Here I'll take Chinese and English for examples, including translate Chinese to English and translate English to Chinese.

Two steps you just need to do

  • To modify the model_name according to your need. In my demo, the model_name are 'Helsinki-NLP/opus-mt-zh-en' and 'Helsinki-NLP/opus-mt-en-zh' respectively. While, alternatively, you could download the corresponding pretrained model from Here by offline, then directly load it like the demo.
  • Just run the demo!