OfekGlick commited on
Commit
e37f209
·
1 Parent(s): decdf4e

Upload DiscoEval.py

Browse files
Files changed (1) hide show
  1. DiscoEval.py +4 -2
DiscoEval.py CHANGED
@@ -17,6 +17,7 @@ import io
17
  import datasets
18
  import constants
19
  import pickle
 
20
 
21
  _CITATION = """\
22
  @InProceedings{mchen-discoeval-19,
@@ -46,9 +47,7 @@ _HOMEPAGE = "https://github.com/ZeweiChu/DiscoEval"
46
  # TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
47
  class DiscoEvalSentence(datasets.GeneratorBasedBuilder):
48
  """DiscoEval Benchmark"""
49
-
50
  VERSION = datasets.Version("1.1.0")
51
-
52
  BUILDER_CONFIGS = [
53
  datasets.BuilderConfig(
54
  name=constants.SPARXIV,
@@ -244,6 +243,9 @@ class DiscoEvalSentence(datasets.GeneratorBasedBuilder):
244
  def _generate_examples(self, filepath, split):
245
  # TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
246
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
 
 
 
247
  if self.config.name in [constants.SPARXIV, constants.SPROCSTORY, constants.SPWIKI,
248
  constants.DCWIKI, constants.DCCHAT,
249
  constants.PDTB_E, constants.PDTB_I,
 
17
  import datasets
18
  import constants
19
  import pickle
20
+ import logging
21
 
22
  _CITATION = """\
23
  @InProceedings{mchen-discoeval-19,
 
47
  # TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
48
  class DiscoEvalSentence(datasets.GeneratorBasedBuilder):
49
  """DiscoEval Benchmark"""
 
50
  VERSION = datasets.Version("1.1.0")
 
51
  BUILDER_CONFIGS = [
52
  datasets.BuilderConfig(
53
  name=constants.SPARXIV,
 
243
  def _generate_examples(self, filepath, split):
244
  # TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
245
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
246
+ logger = logging.getLogger(__name__)
247
+ logger.info(f"Current working dir: {os.getcwd()}")
248
+ logger.info("generating examples from = %s", filepath)
249
  if self.config.name in [constants.SPARXIV, constants.SPROCSTORY, constants.SPWIKI,
250
  constants.DCWIKI, constants.DCCHAT,
251
  constants.PDTB_E, constants.PDTB_I,