Update configuration_tiny_greek_news_bert.py
Browse files
configuration_tiny_greek_news_bert.py
CHANGED
|
@@ -1,19 +1,18 @@
|
|
| 1 |
-
# configuration_tiny_greek_news_bert.py
|
| 2 |
-
from transformers import BertConfig
|
| 3 |
-
|
| 4 |
-
class TinyGreekNewsBertConfig(BertConfig):
|
| 5 |
-
model_type = "tiny_greek_news_bert"
|
| 6 |
-
def __init__(
|
| 7 |
-
self,
|
| 8 |
-
num_labels_class=19,
|
| 9 |
-
num_labels_ner=32,
|
| 10 |
-
ner_loss_weight=3.0,
|
| 11 |
-
**kwargs,
|
| 12 |
-
):
|
| 13 |
-
super().__init__(**kwargs)
|
| 14 |
-
self.num_labels_class = num_labels_class
|
| 15 |
-
self.num_labels_ner = num_labels_ner
|
| 16 |
-
self.ner_loss_weight = ner_loss_weight
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
TinyGreekNewsBertConfig.register_for_auto_class()
|
|
|
|
| 1 |
+
# configuration_tiny_greek_news_bert.py
|
| 2 |
+
from transformers import BertConfig
|
| 3 |
+
|
| 4 |
+
class TinyGreekNewsBertConfig(BertConfig):
|
| 5 |
+
model_type = "tiny_greek_news_bert"
|
| 6 |
+
def __init__(
|
| 7 |
+
self,
|
| 8 |
+
num_labels_class=19,
|
| 9 |
+
num_labels_ner=32,
|
| 10 |
+
ner_loss_weight=3.0,
|
| 11 |
+
**kwargs,
|
| 12 |
+
):
|
| 13 |
+
super().__init__(**kwargs)
|
| 14 |
+
self.num_labels_class = num_labels_class
|
| 15 |
+
self.num_labels_ner = num_labels_ner
|
| 16 |
+
self.ner_loss_weight = ner_loss_weight
|
| 17 |
+
|
| 18 |
+
TinyGreekNewsBertConfig.register_for_auto_class()
|
|
|