Initialize SCAMA. Args: specaug: TODO. specaug_conf: Configuration dict for specaug. normalize: TODO. normalize_conf: Configuration dict for normalize. encoder: TODO. encoder_conf: Co
(
self,
specaug: str = None,
specaug_conf: dict = None,
normalize: str = None,
normalize_conf: dict = None,
encoder: str = None,
encoder_conf: dict = None,
decoder: str = None,
decoder_conf: dict = None,
ctc: str = None,
ctc_conf: dict = None,
ctc_weight: float = 0.5,
predictor: str = None,
predictor_conf: dict = None,
predictor_bias: int = 0,
predictor_weight: float = 0.0,
input_size: int = 80,
vocab_size: int = -1,
ignore_id: int = -1,
blank_id: int = 0,
sos: int = 1,
eos: int = 2,
lsm_weight: float = 0.0,
length_normalized_loss: bool = False,
share_embedding: bool = False,
**kwargs,
)
| 56 | """ |
| 57 | |
| 58 | def __init__( |
| 59 | self, |
| 60 | specaug: str = None, |
| 61 | specaug_conf: dict = None, |
| 62 | normalize: str = None, |
| 63 | normalize_conf: dict = None, |
| 64 | encoder: str = None, |
| 65 | encoder_conf: dict = None, |
| 66 | decoder: str = None, |
| 67 | decoder_conf: dict = None, |
| 68 | ctc: str = None, |
| 69 | ctc_conf: dict = None, |
| 70 | ctc_weight: float = 0.5, |
| 71 | predictor: str = None, |
| 72 | predictor_conf: dict = None, |
| 73 | predictor_bias: int = 0, |
| 74 | predictor_weight: float = 0.0, |
| 75 | input_size: int = 80, |
| 76 | vocab_size: int = -1, |
| 77 | ignore_id: int = -1, |
| 78 | blank_id: int = 0, |
| 79 | sos: int = 1, |
| 80 | eos: int = 2, |
| 81 | lsm_weight: float = 0.0, |
| 82 | length_normalized_loss: bool = False, |
| 83 | share_embedding: bool = False, |
| 84 | **kwargs, |
| 85 | ): |
| 86 | |
| 87 | """Initialize SCAMA. |
| 88 | |
| 89 | Args: |
| 90 | specaug: TODO. |
| 91 | specaug_conf: Configuration dict for specaug. |
| 92 | normalize: TODO. |
| 93 | normalize_conf: Configuration dict for normalize. |
| 94 | encoder: TODO. |
| 95 | encoder_conf: Configuration dict for encoder. |
| 96 | decoder: TODO. |
| 97 | decoder_conf: Configuration dict for decoder. |
| 98 | ctc: TODO. |
| 99 | ctc_conf: Configuration dict for ctc. |
| 100 | ctc_weight: TODO. |
| 101 | predictor: TODO. |
| 102 | predictor_conf: Configuration dict for predictor. |
| 103 | predictor_bias: TODO. |
| 104 | predictor_weight: TODO. |
| 105 | input_size: Size/dimension parameter. |
| 106 | vocab_size: Size/dimension parameter. |
| 107 | ignore_id: TODO. |
| 108 | blank_id: TODO. |
| 109 | sos: TODO. |
| 110 | eos: TODO. |
| 111 | lsm_weight: TODO. |
| 112 | length_normalized_loss: TODO. |
| 113 | share_embedding: TODO. |
| 114 | **kwargs: Additional keyword arguments. |
| 115 | """ |
nothing calls this directly
no test coverage detected