From 47d3dec4fefca0728dd67224084aa8528d76477e Mon Sep 17 00:00:00 2001 From: kdavis-mozilla Date: Tue, 18 Sep 2018 09:56:43 +0200 Subject: [PATCH] Fixed #1549, updated client hyperparams --- native_client/client.cc | 5 ++--- native_client/javascript/client.js | 4 ++-- native_client/python/client.py | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/native_client/client.cc b/native_client/client.cc index d4772842..b2cda25d 100644 --- a/native_client/client.cc +++ b/native_client/client.cc @@ -22,9 +22,8 @@ #define N_CEP 26 #define N_CONTEXT 9 #define BEAM_WIDTH 500 -#define LM_WEIGHT 1.75f -#define WORD_COUNT_WEIGHT 1.00f -#define VALID_WORD_COUNT_WEIGHT 1.00f +#define LM_WEIGHT 1.50f +#define VALID_WORD_COUNT_WEIGHT 2.25f typedef struct { const char* string; diff --git a/native_client/javascript/client.js b/native_client/javascript/client.js index f9c1d15d..5c7acdd9 100644 --- a/native_client/javascript/client.js +++ b/native_client/javascript/client.js @@ -15,11 +15,11 @@ const util = require('util'); const BEAM_WIDTH = 500; // The alpha hyperparameter of the CTC decoder. Language Model weight -const LM_WEIGHT = 1.75; +const LM_WEIGHT = 1.50; // Valid word insertion weight. This is used to lessen the word insertion penalty // when the inserted word is part of the vocabulary -const VALID_WORD_COUNT_WEIGHT = 1.00; +const VALID_WORD_COUNT_WEIGHT = 2.25; // These constants are tied to the shape of the graph used (changing them changes diff --git a/native_client/python/client.py b/native_client/python/client.py index f27fbb43..e9a1029a 100644 --- a/native_client/python/client.py +++ b/native_client/python/client.py @@ -23,11 +23,11 @@ except ImportError: BEAM_WIDTH = 500 # The alpha hyperparameter of the CTC decoder. Language Model weight -LM_WEIGHT = 1.75 +LM_WEIGHT = 1.50 # Valid word insertion weight. This is used to lessen the word insertion penalty # when the inserted word is part of the vocabulary -VALID_WORD_COUNT_WEIGHT = 1.00 +VALID_WORD_COUNT_WEIGHT = 2.25 # These constants are tied to the shape of the graph used (changing them changes