albertvillanova HF staff commited on
Commit
911d5a0
1 Parent(s): 290b9ad

Update script

Browse files
Files changed (1) hide show
  1. kd_conv.py +3 -3
kd_conv.py CHANGED
@@ -12,7 +12,7 @@
12
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
- """KdConv: Chinese multi-domain Knowledge-driven Conversionsation dataset"""
16
 
17
 
18
  import json
@@ -56,7 +56,7 @@ _HOMEPAGE = "https://github.com/thu-coai/KdConv"
56
  _LICENSE = "Apache License 2.0"
57
 
58
 
59
- _URL = "https://github.com/thu-coai/KdConv/archive/master.zip"
60
 
61
  _DOMAINS = ["travel", "music", "film"]
62
  _DATA_TYPES = ["dialogues", "knowledge_base"]
@@ -122,7 +122,7 @@ class KdConv(datasets.GeneratorBasedBuilder):
122
  """Returns SplitGenerators."""
123
 
124
  data_dir = dl_manager.download_and_extract(_URL)
125
- base_dir = os.path.join(os.path.join(data_dir, "KdConv-master"), "data")
126
  if "dialogues" in self.config.name:
127
  return [
128
  datasets.SplitGenerator(
 
12
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
+ """KdConv: Chinese multi-domain Knowledge-driven Conversation dataset"""
16
 
17
 
18
  import json
 
56
  _LICENSE = "Apache License 2.0"
57
 
58
 
59
+ _URL = "data.zip"
60
 
61
  _DOMAINS = ["travel", "music", "film"]
62
  _DATA_TYPES = ["dialogues", "knowledge_base"]
 
122
  """Returns SplitGenerators."""
123
 
124
  data_dir = dl_manager.download_and_extract(_URL)
125
+ base_dir = os.path.join(data_dir, "data")
126
  if "dialogues" in self.config.name:
127
  return [
128
  datasets.SplitGenerator(