katrjohn commited on
Commit
e13c596
·
verified ·
1 Parent(s): 797ac2e

Update configuration_tiny_greek_news_bert.py

Browse files
Files changed (1) hide show
  1. configuration_tiny_greek_news_bert.py +18 -19
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
- # 👇 this writes the AutoConfig mapping when you save_pretrained()
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()