Update README.md
Browse files
README.md
CHANGED
@@ -18,4 +18,78 @@ dataset_info:
|
|
18 |
---
|
19 |
# Dataset Card for "stackoverflow_question_types"
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
[More Information needed](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
|
|
18 |
---
|
19 |
# Dataset Card for "stackoverflow_question_types"
|
20 |
|
21 |
+
## Dataset Description
|
22 |
+
|
23 |
+
Recent research has taken a look into leveraging data available from StackOverflow (SO) to train large language models for programming-related tasks.
|
24 |
+
However, users can ask a wide range of questions on stackoverflow; The "stackoverflow question types" is a dataset of manually annotated questions
|
25 |
+
posted on SO with an associated type. Following a previous [study](https://ieeexplore.ieee.org/document/6405249), each question was annotated with a type
|
26 |
+
capturing the main concern of the user who posted the question. The questions were annotated with the given types:
|
27 |
+
|
28 |
+
* *How to do it*: Providing a scenario and asking about how to implement it (sometimes with a given technology or API).
|
29 |
+
* *Debug/corrective*: Dealing with problems in the code under development, such as runtime errors and unexpected behaviour.
|
30 |
+
* *Seeking different solutions*: The questioner has a working code yet is seeking a different approach to doing the job.
|
31 |
+
* *Need to know*: Questions regarding the possibility or availability of (doing) something. These questions normally show the lack of knowledge or uncertainty about some aspects of the technology (e.g. the presence of a feature in an API or a language).
|
32 |
+
* *Other*: Something else
|
33 |
+
|
34 |
+
We note the following distinction between the three first categories.
|
35 |
+
|
36 |
+
- How to do it: the user wants to do "x", has no clear idea or solution/doesn't know how to do it -> wants any solution for solving "x".
|
37 |
+
- Debug: the user wants to do "x", has a clear idea/solution "y" but it is not working, and is seeking a correction to "y".
|
38 |
+
- Seeking-different-solution: the user wants to do "x", and found already a working solution "y", but is seeking an alternative "z".
|
39 |
+
|
40 |
+
Naturally, some questions may have multiple concerns (i.e. could correspond to multiple categories).
|
41 |
+
However, this dataset contains mainly questions for which we could assign a clear single category to each question.
|
42 |
+
Currently, all questions annotated are a subset of the [stackoverflow_python](koutch/stackoverflow_python) dataset.
|
43 |
+
|
44 |
+
### Languages
|
45 |
+
|
46 |
+
The currently annotated questions concern posts with the *python* tag. The questions are written in *English*.
|
47 |
+
|
48 |
+
## Dataset Structure
|
49 |
+
|
50 |
+
### Data Instances
|
51 |
+
|
52 |
+
[More Information Needed]
|
53 |
+
|
54 |
+
### Data Fields
|
55 |
+
|
56 |
+
- question_id: the unique id of the post
|
57 |
+
- question_body: the (HTML) content of the question
|
58 |
+
- question_type: the assigned category/type/label
|
59 |
+
- "howto",
|
60 |
+
- "debug",
|
61 |
+
- "seeking",
|
62 |
+
- "conceptual",
|
63 |
+
- "other"
|
64 |
+
|
65 |
+
### Data Splits
|
66 |
+
|
67 |
+
[More Information Needed]
|
68 |
+
|
69 |
+
|
70 |
+
## Dataset Creation
|
71 |
+
|
72 |
+
### Annotations
|
73 |
+
|
74 |
+
#### Annotation process
|
75 |
+
|
76 |
+
Previous research looked into mining natural language-code pairs from stackoverflow.
|
77 |
+
Two notable works yielded the [StaQC](https://arxiv.org/abs/1803.09371) and [ConaLA](https://arxiv.org/abs/1803.09371) datasets.
|
78 |
+
Parts of the dataset used a subset of the manual annotations provided by the authors of the papers (available at (staqc)[https://huggingface.co/datasets/koutch/staqc],
|
79 |
+
and (conala)[https://huggingface.co/datasets/neulab/conala]). The questions were annotated as belonging to the "how to do it" category.
|
80 |
+
|
81 |
+
To ease the annotation procedure, we used the [argilla platform](https://docs.argilla.io/en/latest/index.html)
|
82 |
+
and multiple iterations of [few-shot training with a SetFit model](https://docs.argilla.io/en/latest/tutorials/notebooks/labelling-textclassification-setfit-zeroshot.html#%F0%9F%A6%BE-Train-a-few-shot-SetFit-model).
|
83 |
+
|
84 |
+
## Considerations for Using the Data
|
85 |
+
|
86 |
+
### Discussion of Biases
|
87 |
+
|
88 |
+
[More Information Needed]
|
89 |
+
|
90 |
+
### Other Known Limitations
|
91 |
+
|
92 |
+
[More Information Needed]
|
93 |
+
# Dataset Card for "stackoverflow_question_types"
|
94 |
+
|
95 |
[More Information needed](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|