mirror of
https://github.com/mozilla/DeepSpeech.git
synced 2025-10-26 11:19:39 +00:00
Fixed #1549, updated client hyperparams
This commit is contained in:
parent
5dba8e34cb
commit
47d3dec4fe
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user