pheepa commited on
Commit
42b4c87
1 Parent(s): 95a2b78
.gitattributes CHANGED
@@ -52,3 +52,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
52
  *.jpg filter=lfs diff=lfs merge=lfs -text
53
  *.jpeg filter=lfs diff=lfs merge=lfs -text
54
  *.webp filter=lfs diff=lfs merge=lfs -text
 
 
52
  *.jpg filter=lfs diff=lfs merge=lfs -text
53
  *.jpeg filter=lfs diff=lfs merge=lfs -text
54
  *.webp filter=lfs diff=lfs merge=lfs -text
55
+ data/ filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - text-generation
4
+ language:
5
+ - en
6
+ tags:
7
+ - jira
8
+ pretty_name: jira-comments
9
+ size_categories:
10
+ - 1M<n<10M
11
+ ---
12
+ # Dataset Card for Dataset Name
13
+
14
+ ## Dataset Description
15
+
16
+ - **Homepage:**
17
+ - **Repository:**
18
+ - **Paper:**
19
+ - **Leaderboard:**
20
+ - **Point of Contact:**
21
+
22
+ ### Dataset Summary
23
+
24
+ This dataset card aims to be a base template for new datasets. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/datasetcard_template.md?plain=1).
25
+
26
+ ### Supported Tasks and Leaderboards
27
+
28
+ [More Information Needed]
29
+
30
+ ### Languages
31
+
32
+ [More Information Needed]
33
+
34
+ ## Dataset Structure
35
+
36
+ ### Data Instances
37
+
38
+ [More Information Needed]
39
+
40
+ ### Data Fields
41
+
42
+ [More Information Needed]
43
+
44
+ ### Data Splits
45
+
46
+ [More Information Needed]
47
+
48
+ ## Dataset Creation
49
+
50
+ ### Curation Rationale
51
+
52
+ [More Information Needed]
53
+
54
+ ### Source Data
55
+
56
+ #### Initial Data Collection and Normalization
57
+
58
+ [More Information Needed]
59
+
60
+ #### Who are the source language producers?
61
+
62
+ [More Information Needed]
63
+
64
+ ### Annotations
65
+
66
+ #### Annotation process
67
+
68
+ [More Information Needed]
69
+
70
+ #### Who are the annotators?
71
+
72
+ [More Information Needed]
73
+
74
+ ### Personal and Sensitive Information
75
+
76
+ [More Information Needed]
77
+
78
+ ## Considerations for Using the Data
79
+
80
+ ### Social Impact of Dataset
81
+
82
+ [More Information Needed]
83
+
84
+ ### Discussion of Biases
85
+
86
+ [More Information Needed]
87
+
88
+ ### Other Known Limitations
89
+
90
+ [More Information Needed]
91
+
92
+ ## Additional Information
93
+
94
+ ### Dataset Curators
95
+
96
+ [More Information Needed]
97
+
98
+ ### Licensing Information
99
+
100
+ [More Information Needed]
101
+
102
+ ### Citation Information
103
+
104
+ [More Information Needed]
105
+
106
+ ### Contributions
107
+
108
+ [More Information Needed]
data/jira-sentences.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c1ff9fe719e4df873b38bce40b1dc1c894bb49fb73557b797bbee458692b3c2
3
+ size 48681138
data/test-jira-sentences.txt ADDED
The diff for this file is too large to render. See raw diff
 
data/train-jira-sentences.txt ADDED
Binary file (98.3 MB). View file
 
jira-commentaries-mlm.py ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """The BookCorpus dataset."""
2
+
3
+ import datasets
4
+ import os
5
+ import json
6
+
7
+ _DESCRIPTION = """\
8
+ Dataset of jira comments from different projects of Apache and more.
9
+ """
10
+
11
+ _CITATION = """\
12
+ @InProceedings{Zhu_2015_ICCV,
13
+ title = {Jira commentaries for MLM},
14
+ author = {Filipp Abapolov},
15
+ month = {Fubruary},
16
+ year = {2023}
17
+ }
18
+ """
19
+
20
+ _REPO = "https://huggingface.co/datasets/pheepa/jira-commentaries-mlm/resolve/main"
21
+ _URL = f"{_REPO}/data/jira-comments.tar.gz"
22
+
23
+
24
+ class JiraComments(datasets.GeneratorBasedBuilder):
25
+ """JiraComments dataset."""
26
+
27
+ BUILDER_CONFIGS = [
28
+ datasets.BuilderConfig(
29
+ name='jira-comments',
30
+ version=datasets.Version("1.0.0"),
31
+ description=_DESCRIPTION
32
+ )
33
+ ]
34
+
35
+ def _info(self):
36
+ return datasets.DatasetInfo(
37
+ description=_DESCRIPTION,
38
+ features=datasets.Features(
39
+ {
40
+ "sentence": datasets.Value("string"),
41
+ }
42
+ ),
43
+ supervised_keys=None,
44
+ citation=_CITATION
45
+ )
46
+
47
+ def _split_generators(self, dl_manager):
48
+ """Returns SplitGenerators."""
49
+ data_dir = dl_manager.download_and_extract(_URL)
50
+
51
+ return [
52
+ datasets.SplitGenerator(
53
+ name=datasets.Split.TRAIN,
54
+ gen_kwargs={"filepath": os.path.join(data_dir, "train-jira-sentences.txt")}
55
+ ),
56
+ datasets.SplitGenerator(
57
+ name=datasets.Split.TEST,
58
+ gen_kwargs={"filepath": os.path.join(data_dir, "test-jira-sentences.txt")}
59
+ )
60
+ ]
61
+
62
+ def _generate_examples(self, filepath):
63
+ """Yields examples."""
64
+ with open(filepath, 'r') as f:
65
+ sentences = f.read().split('\n')
66
+
67
+ for i, sentence in enumerate(sentences):
68
+ yield i, sentence