current location: Home > download site > Library download > Other libraries > PHP class that calls Baidu Translate
PHP class that calls Baidu Translate
Classify: Library download / Other libraries | Release time: 2017-12-29 | visits: 2396 |
Download: 138 |
Latest Downloads
Fantasy Aquarium
Girls Frontline
Wings of Stars
Little Flower Fairy Fairy Paradise
Restaurant Cute Story
Shanhe Travel Exploration
Love and Producer
The most powerful brain 3
Odd Dust: Damila
Young Journey to the West 2
24 HoursReading Leaderboard
- 1 Why Am I Getting a 404 Error When Inserting Images in My Hugo Blog?
- 2 dsetup16.dll - What is dsetup16.dll?
- 3 dtrsve.dll - What is dtrsve.dll?
- 4 dxcodex.ocx - What is dxcodex.ocx?
- 5 Is std::shared_ptr Thread-Safe When Modifying Shared Objects?
- 6 dsbho_02.dll - What is dsbho_02.dll?
- 7 Strategies to Reduce the Startup Time and Memory Footprint of Your Java App by Up to
- 8 Why Is My MySQL Event Creation Failing with "You have an error in your SQL syntax"?
- 9 Why Is My Sass File Throwing an "Invalid CSS: Expected Expression" Error?
- 10 Why does my not shrink as expected? It seems to have a non-removable min-width: min-content problem.
- 11 dwin0008.dll - What is dwin0008.dll?
- 12 What are the Key Differences between Static and Non-Static Nested Classes in Java?
- 13 X Empire Price Soared To New ATH: Here's What You Should Know
- 14 dwpp.dll - What is dwpp.dll?
- 15 Why Does My Go Interface Method Return Type Cause a Compilation Error?
Latest Tutorials
-
- Go language practical GraphQL
- 1996 2024-04-19
-
- 550W fan master learns JavaScript from scratch step by step
- 3413 2024-04-18
-
- Getting Started with MySQL (Teacher mosh)
- 1798 2024-04-07
-
- Mock.js | Axios.js | Json | Ajax--Ten days of quality class
- 2613 2024-03-29
<?php class FanyiAction extends Action { public function _empty(){ header("HTTP/1.0 404 Not Found"); $this->display("Public:404"); } public function index() { $User = A("Index"); $User->head(); $User->right(); $User->footer(); $this->display(); } public function fanyi() { $value=$_POST['value']; $from="auto"; $to="auto"; $value_code=urlencode($value); $appid="xxxxxxxx";//这里填写你在百度上申请的API key $languageurl = "http://openapi.baidu.com/public/2.0/bmt/translate?client_id=" . $appid ."&q=" .$value_code. "&from=".$from."&to=".$to; $text=json_decode($this->language_text($languageurl)); $text = $text->trans_result; $rs=$text[0]->dst; $this->assign('value',$value); $this->assign('rs',$rs); $User = A("Index"); $User->head(); $User->right(); $User->footer(); $this->display('index'); }
Baidu Translation is an online translation service released by Baidu. It relies on the advantages of Internet data resources and natural language processing technology to help users bridge the language gap and obtain information and services conveniently and quickly.
Baidu Translation supports translation into 28 popular languages around the world, including Chinese, English, Japanese, Korean, Spanish, Thai, French, Arabic, Portuguese, Russian, German, Italian, Dutch, and Greek English, Estonian, Bulgarian, Polish, Danish, Finnish, Czech, Romanian, Swedish, Slovenian, Hungarian, Vietnamese, Cantonese, classical Chinese and traditional Chinese, covering 756 translation directions.
"The world is complex, Baidu understands you better." Baidu Translate has multiple product forms such as web version and mobile APP. In addition, it also provides open cloud interface services for developers, responding to hundreds of millions of translation requests every day. . In addition to text translation, based on the diverse translation needs of users, it has launched functions such as web page translation, online definitions, massive example sentences, authoritative dictionaries, offline translation, voice translation, conversation translation, practical spoken language and photo translation, allowing users to enjoy every translation experience.
On February 28, 2013, based on mobile phone usage scenarios, Baidu Translation officially launched the Android mobile client, and on March 7, 2013, the iOS mobile client was officially released. In May 2015, the neural network translation (NMT) system was released, which is the world's first Internet NMT online product. In June 2015, the offline NMT system for mobile phones was released, supporting multiple languages such as Chinese, English, Japanese and Korean. On July 5, 2016, Baidu Human Translation was officially released, providing users with paid and accurate human translation services, and is committed to more comprehensively meeting the translation needs of users in different scenarios.