Shaltiel commited on
Commit
d013b37
·
verified ·
1 Parent(s): ae559ca

Update BertForJointParsing.py

Browse files
Files changed (1) hide show
  1. BertForJointParsing.py +4 -1
BertForJointParsing.py CHANGED
@@ -40,7 +40,10 @@ class ModuleRef:
40
  return self.module(*args, **kwargs)
41
 
42
  class BertForJointParsing(BertPreTrainedModel):
43
- _tied_weights_keys = ["predictions.decoder.bias", "cls.predictions.decoder.weight"]
 
 
 
44
 
45
  def __init__(self, config, do_syntax=None, do_ner=None, do_prefix=None, do_lex=None, do_morph=None, syntax_head_size=64):
46
  super().__init__(config)
 
40
  return self.module(*args, **kwargs)
41
 
42
  class BertForJointParsing(BertPreTrainedModel):
43
+ tied_weights_keys = {
44
+ "cls.predictions.decoder.weight": "bert.embeddings.word_embeddings.weight",
45
+ "cls.predictions.decoder.bias": "cls.predictions.bias",
46
+ }
47
 
48
  def __init__(self, config, do_syntax=None, do_ner=None, do_prefix=None, do_lex=None, do_morph=None, syntax_head_size=64):
49
  super().__init__(config)