aynetdia commited on
Commit
9c7a0e6
·
1 Parent(s): 9986ffb
Files changed (2) hide show
  1. README.md +1 -1
  2. semscore.py +4 -7
README.md CHANGED
@@ -20,7 +20,7 @@ When loading SemScore, you can choose any pre-trained encoder-only model uploade
20
 
21
  ```python
22
  import evaluate
23
- semscore = evaluate.load("semscore", "model_name")
24
  ```
25
 
26
  SemScore takes 2 mandatory arguments in order to calculate the final score:
 
20
 
21
  ```python
22
  import evaluate
23
+ semscore = evaluate.load("aynetdia/semscore", "model_name")
24
  ```
25
 
26
  SemScore takes 2 mandatory arguments in order to calculate the final score:
semscore.py CHANGED
@@ -71,14 +71,11 @@ class SemScore(evaluate.Metric):
71
  inputs_description=_KWARGS_DESCRIPTION,
72
  # This defines the format of each prediction and reference
73
  features=datasets.Features({
74
- 'predictions': datasets.Value('int64'),
75
- 'references': datasets.Value('int64'),
76
  }),
77
- # Homepage of the module for documentation
78
- homepage="http://module.homepage",
79
- # Additional links to the codebase or references
80
- codebase_urls=["http://github.com/path/to/codebase/of/new_module"],
81
- reference_urls=["http://path.to.reference.url/new_module"]
82
  )
83
 
84
  def _download_and_prepare(self, dl_manager):
 
71
  inputs_description=_KWARGS_DESCRIPTION,
72
  # This defines the format of each prediction and reference
73
  features=datasets.Features({
74
+ 'predictions': datasets.Value('string'),
75
+ 'references': datasets.Value('string'),
76
  }),
77
+ # Additional link to the reference
78
+ reference_urls=["https://arxiv.org/abs/2401.17072"]
 
 
 
79
  )
80
 
81
  def _download_and_prepare(self, dl_manager):