xu1998hz commited on
Commit
cc92fc5
1 Parent(s): ba7a383

Update sescore.py

Browse files
Files changed (1) hide show
  1. sescore.py +1 -0
sescore.py CHANGED
@@ -122,6 +122,7 @@ class SEScore(evaluate.Metric):
122
  from huggingface_hub import snapshot_download
123
  # initialize roberta into str2encoder
124
  comet.encoders.str2encoder['RoBERTa'] = robertaEncoder
 
125
  if self.config_name == "default":
126
  destination = snapshot_download(repo_id="xu1998hz/sescore_english_mt", revision="main")
127
  self.scorer = load_from_checkpoint(f'{destination}/checkpoint/sescore_english_mt.ckpt')
 
122
  from huggingface_hub import snapshot_download
123
  # initialize roberta into str2encoder
124
  comet.encoders.str2encoder['RoBERTa'] = robertaEncoder
125
+ print(self.config_name)
126
  if self.config_name == "default":
127
  destination = snapshot_download(repo_id="xu1998hz/sescore_english_mt", revision="main")
128
  self.scorer = load_from_checkpoint(f'{destination}/checkpoint/sescore_english_mt.ckpt')