The goal of ecce is to make it easy to translate English sentence into Chinese, or translate Chinese sentence into English. It also support browse translation results in website. In addition, also support obtain the pinyin of the Chinese character, so that you can more easily understand the pronunciation of the Chinese character.
To use the ecce package, users need to first register with the Youdao Wisdom Cloud AI open platform, and then open the text translation application. Then put your Youdao API ID and PASSWORD in the following code and run it once.
By default, the from and to parameter values are set to “auto”, which translate English into Chinese, or Chinese into English. Sometimes you need to explicitly specify the from and to values as “en” or “zh-CHS”.
The code for each language can be found in the Youdao Text Translation API documentation.