Need Confidence score of every prediction

505 views
Skip to first unread message

Anamika. Kumari

unread,
Jun 30, 2021, 6:34:27 AM6/30/21
to Google Cloud Translation API
Hi Google team,

I want to know the "confidence score" of every prediction for the auto-translated text. Please provide any information on this. 

Patricio Serrano Exposito

unread,
Jul 1, 2021, 5:28:19 AM7/1/21
to Google Cloud Translation API
Hello,

If you want to know the confidence score for the language that was detected, you can take a look at the documentation here [1] on how to make such requests. Those requests will return a "confidence" field that is the confidence score in a range from 0 to 1. A "confidence" of 1 would mean it's 100% confident on the detection.

If you want the confidence score for the translation of the detected text, I don't think it's possible as that feature currently does not exist in Google Cloud Translation API.

Adam Bittlingmayer

unread,
Jul 1, 2021, 6:52:22 AM7/1/21
to Google Cloud Translation API
Hi Anamika,

The go-to provider of machine translation risk prediction is ModelFront.  Docs at modelfront.com/docs/api/.

You can try it the generic model and get a free API key at console.modelfront.com.  It is most popular for lightweight use cases like pricing and filtering.  If you need a custom model,  it will be a few months because the team is bit overloaded with providing those at this time, but you can order one sooner and I'm happy to hear about your use case, content type, language pairs etc.

Full disclosure: Although I previously worked as an engineer at Google Translate, I have no affiliation with Google or Google Translate.

Adam
Reply all
Reply to author
Forward
0 new messages