Gleb Vinarskis
commited on
Commit
·
334cff9
1
Parent(s):
c8d4e01
debug
Browse files- config.json +1 -1
- modeling_stacked.py +1 -1
config.json
CHANGED
@@ -16,6 +16,6 @@
|
|
16 |
"flename": "LID-40-3-2000000-1-4.bin",
|
17 |
"auto_map": {
|
18 |
"AutoConfig": "configuration_stacked.ImpressoConfig",
|
19 |
-
"
|
20 |
}
|
21 |
}
|
|
|
16 |
"flename": "LID-40-3-2000000-1-4.bin",
|
17 |
"auto_map": {
|
18 |
"AutoConfig": "configuration_stacked.ImpressoConfig",
|
19 |
+
"AutoModelForTokenClassification": "modeling_stacked.ExtendedMultitaskModelForTokenClassification"
|
20 |
}
|
21 |
}
|
modeling_stacked.py
CHANGED
@@ -16,7 +16,7 @@ def get_info(label_map):
|
|
16 |
return num_token_labels_dict
|
17 |
|
18 |
|
19 |
-
class ExtendedMultitaskModelForTokenClassification():
|
20 |
def __init__(self, config):
|
21 |
super().__init__(config)
|
22 |
self.config = config
|
|
|
16 |
return num_token_labels_dict
|
17 |
|
18 |
|
19 |
+
class ExtendedMultitaskModelForTokenClassification(PreTrainedModel):
|
20 |
def __init__(self, config):
|
21 |
super().__init__(config)
|
22 |
self.config = config
|