Alexeym12 commited on
Commit
3448016
1 Parent(s): 34938eb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -0
README.md CHANGED
@@ -27,6 +27,8 @@ class ESGify(MPNetPreTrainedModel):
27
  super().__init__(config)
28
  # Instantiate Parts of model
29
  self.mpnet = MPNetModel(config,add_pooling_layer=False)
 
 
30
  self.classifier = torch.nn.Sequential(OrderedDict([('norm',torch.nn.BatchNorm1d(768)),
31
  ('linear',torch.nn.Linear(768,512)),
32
  ('act',torch.nn.ReLU()),
 
27
  super().__init__(config)
28
  # Instantiate Parts of model
29
  self.mpnet = MPNetModel(config,add_pooling_layer=False)
30
+ self.id2label = config.id2label
31
+ self.label2id = config.label2id
32
  self.classifier = torch.nn.Sequential(OrderedDict([('norm',torch.nn.BatchNorm1d(768)),
33
  ('linear',torch.nn.Linear(768,512)),
34
  ('act',torch.nn.ReLU()),