Machine Translation (MT)

MT in VNTranslator comes in two types:

1. Machine Translation via Web Scraping (unauthorized integration)

  • Web Scraping for machine translation involves the extraction of textual content from websites to utilize machine translation services without directly using an API. Example: Google Web, DeepL Web, Bing, Papago & Baidu

2. Machine Translation via API (authorized integration)

  • MT with API refers to the process of utilizing a machine translation service through an Application Programming Interface. Example: DeepL API, Google API & OpenAI API

Differences between the two types of machine translation:

1. Web Scraping (WS)

  • Unauthorized integration

  • Free of charge

  • Unstable integration due to the need for script updates when the website page is updated

  • Requires a stable connection to fully load the website page

  • Excessive requests may result in the client's IP being blocked and the website page not loading

2. API

  • Authorized integration

  • Cost depends on usage

  • Stable integration

Troubleshooting for the two types of machine translation:

1. Web Scraping (WS)

In VNTranslator, error messages will only display "Timeout" because this method relies on evaluating the page load of the website. "Timeout" indicates that the querySelector could not find a match on the loaded website page. This issue can arise due to several factors:

  • Unstable Connection An unstable connection may cause the website page to fail to load.

  • The website blocks the client's IP / The website displays a captcha verification This is common when too many requests are made. Solutions: - Clear cookies & site data in VNTranslator - Set up and use a VPN

  • The website page is updated As this is an unauthorized method, script updates are required whenever the website page is updated. Solutions: - Check on Discord in the #custom-mt channel for translator updates and use Custom MT

2. API

Error messages with the API can be easily understood and are available on the MT service website.

Last updated