albertvillanova HF staff commited on
Commit
0d08752
1 Parent(s): 222dd03
Files changed (2) hide show
  1. data.zip +3 -0
  2. kd_conv.py +3 -3
data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7783e2406d81fca888af3c4277b5a8dc47e9d8ca796153d202f2d21fbd168c4a
3
+ size 10210217
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(