Fixed #1549, updated client hyperparams

This commit is contained in:
kdavis-mozilla 2018-09-18 09:56:43 +02:00
parent 5dba8e34cb
commit 47d3dec4fe
3 changed files with 6 additions and 7 deletions

View File

@ -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;

View File

@ -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

View File

@ -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