Datasets:
Commit
•
0d08752
1
Parent(s):
222dd03
Support streaming (#2)
Browse files- Add data file (290b9ad0d745b1b8aaf07c4da2547c34e19e08af)
- Update script (911d5a0dc8cf00cb0c39ef88fa371e5c81011d85)
- data.zip +3 -0
- 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
|
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 = "
|
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(
|
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(
|