Update KokoroChat.py
Browse files- KokoroChat.py +3 -3
KokoroChat.py
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
import json
|
| 2 |
-
from datasets import DatasetInfo, GeneratorBasedBuilder, SplitGenerator, Split, Value, Sequence
|
| 3 |
|
| 4 |
class KokoroChat(GeneratorBasedBuilder):
|
| 5 |
def _info(self):
|
| 6 |
return DatasetInfo(
|
| 7 |
description="KokoroChat: A Japanese psychological counseling dialogue dataset.",
|
| 8 |
features={
|
| 9 |
-
"dialogue": Sequence({
|
| 10 |
"role": Value("string"),
|
| 11 |
"time": Value("string"),
|
| 12 |
"utterance": Value("string")
|
| 13 |
-
}),
|
| 14 |
"topic": {
|
| 15 |
"main_jp": Value("string"),
|
| 16 |
"main_en": Value("string"),
|
|
|
|
| 1 |
import json
|
| 2 |
+
from datasets import DatasetInfo, GeneratorBasedBuilder, SplitGenerator, Split, Value, Sequence, Features
|
| 3 |
|
| 4 |
class KokoroChat(GeneratorBasedBuilder):
|
| 5 |
def _info(self):
|
| 6 |
return DatasetInfo(
|
| 7 |
description="KokoroChat: A Japanese psychological counseling dialogue dataset.",
|
| 8 |
features={
|
| 9 |
+
"dialogue": Sequence(Features({
|
| 10 |
"role": Value("string"),
|
| 11 |
"time": Value("string"),
|
| 12 |
"utterance": Value("string")
|
| 13 |
+
})),
|
| 14 |
"topic": {
|
| 15 |
"main_jp": Value("string"),
|
| 16 |
"main_en": Value("string"),
|