update
Browse files- v2ex.py +7 -2
- v2ex_context_response.jsonl.gz +3 -0
- v2ex_conversation.jsonl.gz +2 -2
- v2ex_replies.jsonl.gz +2 -2
- v2ex_topic.jsonl.gz +2 -2
v2ex.py
CHANGED
@@ -18,6 +18,7 @@ _DATA_URLS = {
|
|
18 |
"topic": "v2ex_topic.jsonl.gz",
|
19 |
"replies": "v2ex_replies.jsonl.gz",
|
20 |
"conversation": "v2ex_conversation.jsonl.gz",
|
|
|
21 |
}
|
22 |
|
23 |
|
@@ -114,7 +115,12 @@ class V2EX(datasets.GeneratorBasedBuilder):
|
|
114 |
"username": Value("string"),
|
115 |
"post": Value("string"),
|
116 |
}),
|
117 |
-
"
|
|
|
|
|
|
|
|
|
|
|
118 |
})
|
119 |
else:
|
120 |
raise NotImplementedError(
|
@@ -151,4 +157,3 @@ class V2EX(datasets.GeneratorBasedBuilder):
|
|
151 |
yield key, j
|
152 |
key += 1
|
153 |
|
154 |
-
|
|
|
18 |
"topic": "v2ex_topic.jsonl.gz",
|
19 |
"replies": "v2ex_replies.jsonl.gz",
|
20 |
"conversation": "v2ex_conversation.jsonl.gz",
|
21 |
+
"context-response": "v2ex_context_response.jsonl.gz",
|
22 |
}
|
23 |
|
24 |
|
|
|
115 |
"username": Value("string"),
|
116 |
"post": Value("string"),
|
117 |
}),
|
118 |
+
"url": Value(dtype="string"),
|
119 |
+
})
|
120 |
+
elif self.config.name == "context-response":
|
121 |
+
features = datasets.Features({
|
122 |
+
"context": Value("string"),
|
123 |
+
"response": Value("string"),
|
124 |
})
|
125 |
else:
|
126 |
raise NotImplementedError(
|
|
|
157 |
yield key, j
|
158 |
key += 1
|
159 |
|
|
v2ex_context_response.jsonl.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e65db70b35e43b1ee2baeae5d0185fa68155a5513f6f49d9a25b38121886f837
|
3 |
+
size 651811218
|
v2ex_conversation.jsonl.gz
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b4176af94badd81411e1fedd6549f38979793f7c44449ad7869fd6a56246e6e4
|
3 |
+
size 602821148
|
v2ex_replies.jsonl.gz
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2ece38c5178bacaab34e1ba7120007d8a6b50e00cfaf520fd0ea5e34f200f699
|
3 |
+
size 936223646
|
v2ex_topic.jsonl.gz
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:665ce579219d99bec322d2bc0b879b613b1f4b09630410c4c2b8403a239ec1d3
|
3 |
+
size 310121782
|