Symbol count in Translation API

72 views
Skip to first unread message

Ivo Seeba

unread,
Oct 21, 2021, 6:23:58 PM10/21/21
to Google Cloud Translation API
Hi,
I use the translation api in PHP:
$ggl = new \Google\Cloud\Translate\V2\TranslateClient(['key' => 'the_api_key.....']);
$ggl->translate("computer", ['source' => 'en', 'target' => 'et', 'format' => 'html']);
The word "computer" consists of 8 symbols, and in Estonian "arvuti" 6 symbols. How can I get the information how many symbols it counted? Does it count source language (8 symbols) or destination language (6 symbols)?
Thank you

Abdelilah Fakkar

unread,
Oct 21, 2021, 8:37:02 PM10/21/21
to Google Cloud Translation API
Reply all
Reply to author
Forward
0 new messages