Datasets:
Tasks:
Text Generation
Modalities:
Text
Formats:
webdataset
Languages:
English
Size:
< 1K
Tags:
jira
spelling
Browse files- jira-comments.py +2 -2
jira-comments.py
CHANGED
@@ -42,7 +42,7 @@ class JiraComments(datasets.GeneratorBasedBuilder):
|
|
42 |
{
|
43 |
"sentence_a": datasets.Value("string"),
|
44 |
"sentence_b": datasets.Value("string"),
|
45 |
-
"
|
46 |
}
|
47 |
),
|
48 |
supervised_keys=None,
|
@@ -71,4 +71,4 @@ class JiraComments(datasets.GeneratorBasedBuilder):
|
|
71 |
|
72 |
for i in range(0, len(triples) - 1, 3):
|
73 |
l, a, b = triples[i:i+3]
|
74 |
-
yield i // 3, {"sentence_a": a, 'sentence_b': b, '
|
|
|
42 |
{
|
43 |
"sentence_a": datasets.Value("string"),
|
44 |
"sentence_b": datasets.Value("string"),
|
45 |
+
"next_sentence_label": datasets.Value("int32")
|
46 |
}
|
47 |
),
|
48 |
supervised_keys=None,
|
|
|
71 |
|
72 |
for i in range(0, len(triples) - 1, 3):
|
73 |
l, a, b = triples[i:i+3]
|
74 |
+
yield i // 3, {"sentence_a": a, 'sentence_b': b, 'next_sentence_label': int(l)}
|