Translation is the new Oracle Cloud Infrastructure AI Language service!

Language is serverless and multi-tenant service that is accessible using REST API calls. It provides pretrained models that are frequently retrained and monitored to provide you with the best results.

You can automate sophisticated text analysis at scale without any machine learning expertise.

https://docs.oracle.com/en-us/iaas/language/using/overview.htm#language

I wrote about this service before and also how to integrate it with the Oracle Digital Assistant and the Oracle Integration Cloud.

What’s new?

There is a new Translation service that is still in Limited Availability (LA) mode, but should be released soon.

This translation service, similarly to the other Language services, can be accessed via the console or any of the may available modes, like API, SDK or CLI.

Which languages does it support?

To start with, this is the set of supported languages.

  • Arabic (ar)
  • Brazilian Portuguese (pt-BR)
  • Czech (cs)
  • Danish (da)
  • Dutch (nl)
  • English (en)
  • Finnish (fi)
  • French (fr)
  • French Canadian (fr-CA)
  • German (de)
  • Italian (it)
  • Japanese (ja)
  • Korean (ko)
  • Norwegian (no)
  • Polish (pl)
  • Romanian (ro)
  • Simplified Chinese(zh-CN)
  • Spanish (es-ww)
  • Swedish (sv)
  • Traditional Chinese (zh-TW)
  • Turkish (tr)

It can translate from/to any of the above.

Console

Translation is a capability part of the AI Language service, hence it can be reached under the main Language menu, in the OCI Console.

There is as simple as it can get. You choose the source and target language, paste the text and press the button!

SDK

Now the more interesting part 🙂 OCI offers several SDK’s, plus CLI and REST capabilities.

Below is a sample on how to use the translation service with the Python SDK, where I send two messages in 2 different languages for translation.

Below is the output!

{
  "documents": [
    {
      "key": null,
      "source_language_code": "en",
      "target_language_code": "sv",
      "translated_text": "Jag ska ge honom ett erbjudande som han inte kan v\u00e4gra"
    },
    {
      "key": null,
      "source_language_code": "es",
      "target_language_code": "en",
      "translated_text": "It's never too late to learn"
    }
  ],
  "errors": []
}

The AI services keep expanding!