diff --git a/src/components/Match/calculateConfidence.js b/src/components/Match/calculateConfidence.js index e96cf2aad..fa8f71dac 100644 --- a/src/components/Match/calculateConfidence.js +++ b/src/components/Match/calculateConfidence.js @@ -1,7 +1,11 @@ const calculateConfidence = suggestion => { - if ( !suggestion ) { return null; } + if ( !suggestion ) { + return null; + } + // Note: combined_score have values between 0 and 100, + // compared with vision-plugin v4.2.2 model results that have scores between 0 and 1 const score = suggestion?.score - ? suggestion.score + ? ( suggestion.score * 100 ) : suggestion.combined_score; const confidence = parseFloat( score.toFixed( 1 ) ); return confidence;