3 ms·
seems these API might work better if they took expected language as input :)
by mohi13 9y ago
seems these API might work better if they took expected language as input :)
- mattnewton 9y agoThat, or had some cannonicalization algorithm/lookup table on top of the model. Should be able to attempt to map them to roman characters if wanted.
- boulos 9y agoThey do! For example, Vision takes languageHints [1]. With the Speech API, I took an hour long tour of Rouffignac (in French) and translated it into English. I considered adding some SpeechContext [2] for things like mammoth and so on, but actually it did a fine enough job as is (besides, I had to listen to it later, as there was obviously no coverage in the cave). Disclosure: I work on Google Cloud (but not these APIs). [1] https://cloud.google.com/vision/docs/reference/rest/v1/images/annotate#ImageContext https://cloud.google.com/vision/docs/reference/rest/v1/image... [2] https://cloud.google.com/speech/reference/rest/v1/RecognitionConfig#SpeechContext https://cloud.google.com/speech/reference/rest/v1/Recognitio...