Skip to content

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.

Notifications You must be signed in to change notification settings

LaughingGo/Bi-directionally-Chinese-English-Translation-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

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!

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages