cointegrated commited on
Commit
f3d48bc
1 Parent(s): 75f7f85

fix dtypes

Browse files
Files changed (1) hide show
  1. blaser_2_0_qe.py +3 -4
blaser_2_0_qe.py CHANGED
@@ -57,8 +57,6 @@ Examples:
57
  {'accuracy': 1.0}
58
  """
59
 
60
- # TODO: Define external resources urls if needed
61
- BAD_WORDS_URL = "http://url/to/external/resource/bad_words.txt"
62
 
63
 
64
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
@@ -75,9 +73,10 @@ class BLASER20QE(evaluate.Metric):
75
  inputs_description=_KWARGS_DESCRIPTION,
76
  # This defines the format of each prediction and reference
77
  features=datasets.Features({
78
- 'predictions': datasets.Value('str'),
79
- 'references': datasets.Value('str'),
80
  }),
 
81
  # Homepage of the module for documentation
82
  homepage="http://module.homepage",
83
  # Additional links to the codebase or references
 
57
  {'accuracy': 1.0}
58
  """
59
 
 
 
60
 
61
 
62
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
 
73
  inputs_description=_KWARGS_DESCRIPTION,
74
  # This defines the format of each prediction and reference
75
  features=datasets.Features({
76
+ 'predictions': datasets.Value('string'),
77
+ 'references': datasets.Value('string'),
78
  }),
79
+ # See https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions for the data types
80
  # Homepage of the module for documentation
81
  homepage="http://module.homepage",
82
  # Additional links to the codebase or references