These results are less accurate than Google Translate. But they are far faster to get, and far less expensive to generate: https://cloud.google.com/translate/pricing — our goal is here is speed. We want to search through many possibilities as quickly as possible.
The word vectors have been aligned in multiple languages. Using an approximate nearest neighbor search we are able to find the nearest vector to the input in multiple languages very quickly.
To keep the example simple, we did not try to filter the data through hand-built language dictionaries. In fact, we simply drop words in other languages that also appear in the English .vec file. Words like "ciao" appear frequently enough in otherwise English sentences that the example code drops it from Italian, and so is not shown in the results:
One improvement would be to filter out any words that do not appear in a hand-curated dictionary instead of filtering out words that already appear in English. We decided not to show how to do this because we'd already introduced a few concepts, like aligned word vectors, approximate nearest neighbour searches, and wanted to keep the example as simple as possible.
The Italian "auguri" means "best wishes"; "chiamatemi" means "call me". Neither is a plausible translation of "hello". The obvious one, "ciao", is missing.
I thought Hello was invented with the telephone. Prior to that, English greetings were good morning/evening. What do Italians and French say when they pick up the phone? Allora?
No, bonjours exists (it's simply the plural form of bonjour used as a noun) but the contexts it is used are very very infrequent so it's weird to find it in that list.
It seems to be a very domain specific solution, they are trying to present versions of words in customer requested domain names if already taken.
Like you type in “stargazer. com”, system sees it’s already registered, and returns a “sorry sir it’s taken” page, with similar words listed as “but maybe try these words: astronomer, observatory, telescope, shooting star...”.
So it’s not serious translation, more of an inexpensive quick dictionary search. I guess it’s okay for its intended purposes.
> Language: fr, Translation: bonjours
> Language: fr, Translation: bonsoir
> Language: fr, Translation: salutations
> Language: it, Translation: buongiorno
> Language: it, Translation: buonanotte
> Language: fr, Translation: rebonjour
> Language: it, Translation: auguri
> Language: fr, Translation: bonjour,
> Language: it, Translation: buonasera
> Language: it, Translation: chiamatemi
Is it just me or these machine translations are worse than ... Google Translate?