Datasets:
Tasks:
Text Generation
Modalities:
Text
Formats:
webdataset
Languages:
English
Size:
< 1K
Tags:
jira
pairs
Browse files- jira-comments.py +3 -3
jira-comments.py
CHANGED
@@ -53,11 +53,11 @@ class JiraComments(datasets.GeneratorBasedBuilder):
|
|
53 |
return [
|
54 |
datasets.SplitGenerator(
|
55 |
name=datasets.Split.TRAIN,
|
56 |
-
gen_kwargs={"filepath": os.path.join(data_dir, "train-jira-comments.txt")}
|
57 |
),
|
58 |
datasets.SplitGenerator(
|
59 |
name=datasets.Split.TEST,
|
60 |
-
gen_kwargs={"filepath": os.path.join(data_dir, "test-jira-comments.txt")}
|
61 |
)
|
62 |
]
|
63 |
|
@@ -68,4 +68,4 @@ class JiraComments(datasets.GeneratorBasedBuilder):
|
|
68 |
|
69 |
for id_, line in enumerate(range(0, len(triples), 3)):
|
70 |
l, a, b = line.split('\n')
|
71 |
-
yield id_, {"text": ' '.join([a, b]), 'labels': int(l)}
|
|
|
53 |
return [
|
54 |
datasets.SplitGenerator(
|
55 |
name=datasets.Split.TRAIN,
|
56 |
+
gen_kwargs={"filepath": os.path.join(data_dir, "train-pairs-jira-comments.txt")}
|
57 |
),
|
58 |
datasets.SplitGenerator(
|
59 |
name=datasets.Split.TEST,
|
60 |
+
gen_kwargs={"filepath": os.path.join(data_dir, "test-pairs-jira-comments.txt")}
|
61 |
)
|
62 |
]
|
63 |
|
|
|
68 |
|
69 |
for id_, line in enumerate(range(0, len(triples), 3)):
|
70 |
l, a, b = line.split('\n')
|
71 |
+
yield id_, {"text": '. '.join([a, b]), 'labels': int(l)}
|