Update configuration_neural_sbs.py
Browse files
configuration_neural_sbs.py
CHANGED
|
@@ -11,10 +11,16 @@ class NeuralSBSConfig(PretrainedConfig):
|
|
| 11 |
|
| 12 |
def __init__(
|
| 13 |
self,
|
| 14 |
-
backbone_name="facebook/hubert-base-ls960",
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
| 16 |
**kwargs,
|
| 17 |
):
|
| 18 |
super().__init__(**kwargs)
|
| 19 |
self.backbone_name = backbone_name
|
| 20 |
-
self.
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
def __init__(
|
| 13 |
self,
|
| 14 |
+
backbone_name: str = "facebook/hubert-base-ls960",
|
| 15 |
+
bert_model_name: str = "google-bert/bert-base-uncased",
|
| 16 |
+
embedding_dim: int = 768,
|
| 17 |
+
attention_dim: int = 512,
|
| 18 |
+
max_text_seq_length: int = 512,
|
| 19 |
**kwargs,
|
| 20 |
):
|
| 21 |
super().__init__(**kwargs)
|
| 22 |
self.backbone_name = backbone_name
|
| 23 |
+
self.bert_model_name = bert_model_name
|
| 24 |
+
self.embedding_dim = embedding_dim
|
| 25 |
+
self.attention_dim = attention_dim
|
| 26 |
+
self.max_text_seq_length = max_text_seq_length
|