kiamehr74 commited on
Commit
f35b9c1
·
1 Parent(s): 1f66637

path bug fixed

Browse files
Files changed (1) hide show
  1. CoarseWSD-20.py +6 -4
CoarseWSD-20.py CHANGED
@@ -22,6 +22,8 @@ to provide an ideal setting for evaluating WSD models (e.g. no senses in test se
22
  from training), both quantitavely and qualitatively.
23
  """
24
 
 
 
25
  _WORDS = ["apple", "arm", "bank", "bass",
26
  "bow", "chair", "club", "crane",
27
  "deck", "digit", "hood", "java",
@@ -65,13 +67,13 @@ class CWSD20(datasets.GeneratorBasedBuilder):
65
 
66
  def _split_generators(self, dl_manager):
67
  """Returns SplitGenerators."""
68
- train_ex_path = os.path.join("data", self.config.name,
69
  "train.data.txt")
70
- test_ex_path = os.path.join("data", self.config.name,
71
  "test.data.txt")
72
- train_lb_path = os.path.join("data", self.config.name,
73
  "train.gold.txt")
74
- test_lb_path = os.path.join("data", self.config.name,
75
  "test.gold.txt")
76
 
77
  return [datasets.SplitGenerator(name=datasets.Split.TRAIN,
 
22
  from training), both quantitavely and qualitatively.
23
  """
24
 
25
+ _URL = "https://huggingface.co/datasets/kiamehr74/CoarseWSD-20/raw/main/data"
26
+
27
  _WORDS = ["apple", "arm", "bank", "bass",
28
  "bow", "chair", "club", "crane",
29
  "deck", "digit", "hood", "java",
 
67
 
68
  def _split_generators(self, dl_manager):
69
  """Returns SplitGenerators."""
70
+ train_ex_path = os.path.join(_URL, self.config.name,
71
  "train.data.txt")
72
+ test_ex_path = os.path.join(_URL, self.config.name,
73
  "test.data.txt")
74
+ train_lb_path = os.path.join(_URL, self.config.name,
75
  "train.gold.txt")
76
+ test_lb_path = os.path.join(_URL, self.config.name,
77
  "test.gold.txt")
78
 
79
  return [datasets.SplitGenerator(name=datasets.Split.TRAIN,