Update README.md
Browse files
README.md
CHANGED
|
@@ -1,29 +1,60 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
-
tags:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
# Model Card for Model ID
|
| 7 |
|
| 8 |
<!-- Provide a quick summary of what the model is/does. -->
|
| 9 |
-
|
| 10 |
-
|
| 11 |
|
| 12 |
## Model Details
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
### Model Description
|
| 15 |
|
| 16 |
<!-- Provide a longer summary of what this model is. -->
|
| 17 |
|
| 18 |
-
This
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
-
- **Developed by:** [More Information Needed]
|
| 21 |
-
- **Funded by [optional]:** [More Information Needed]
|
| 22 |
-
- **Shared by [optional]:** [More Information Needed]
|
| 23 |
-
- **Model type:** [More Information Needed]
|
| 24 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 25 |
-
- **License:** [More Information Needed]
|
| 26 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 27 |
|
| 28 |
### Model Sources [optional]
|
| 29 |
|
|
@@ -71,6 +102,7 @@ Users (both direct and downstream) should be made aware of the risks, biases and
|
|
| 71 |
|
| 72 |
Use the code below to get started with the model.
|
| 73 |
|
|
|
|
| 74 |
[More Information Needed]
|
| 75 |
|
| 76 |
## Training Details
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- github
|
| 5 |
+
datasets:
|
| 6 |
+
- lewtun/github-issues
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
base_model:
|
| 10 |
+
- google-bert/bert-base-uncased
|
| 11 |
---
|
| 12 |
|
| 13 |
# Model Card for Model ID
|
| 14 |
|
| 15 |
<!-- Provide a quick summary of what the model is/does. -->
|
| 16 |
+
This is a fine-tuned `bert-base-uncased` model for multi-label classification of GitHub issues into various tags (e.g., `bug`, `enhancement`, `documentation`, etc.).
|
|
|
|
| 17 |
|
| 18 |
## Model Details
|
| 19 |
|
| 20 |
+
- **Base model**: [bert-base-uncased](https://huggingface.co/bert-base-uncased)
|
| 21 |
+
- **Task**: Multi-label Text Classification
|
| 22 |
+
- **Labels**: 19 possible tags (e.g., `bug`, `dataset request`, `help wanted`, etc.)
|
| 23 |
+
- **Tokenizer**: `bert-base-uncased`
|
| 24 |
+
|
| 25 |
### Model Description
|
| 26 |
|
| 27 |
<!-- Provide a longer summary of what this model is. -->
|
| 28 |
|
| 29 |
+
This model performs multi-label classification of GitHub issues based on their content. Each issue is represented by a combination of its title, body, state, and associated comments. These components are concatenated into a single input string using the following format:
|
| 30 |
+
```python
|
| 31 |
+
if example.get("title"):
|
| 32 |
+
text_parts.append("Title: " + example["title"])
|
| 33 |
+
if example.get("body"):
|
| 34 |
+
text_parts.append("Body: " + example["body"])
|
| 35 |
+
if example.get("state"):
|
| 36 |
+
text_parts.append("State: " + example["state"])
|
| 37 |
+
|
| 38 |
+
comments = example.get("comments", [])
|
| 39 |
+
if comments:
|
| 40 |
+
text_parts.append("Comments: " + " ".join(comments))
|
| 41 |
+
|
| 42 |
+
return {"text": " \n ".join(text_parts)}
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
The resulting "text" field serves as the input to the model. Each text entry is tokenized using the Hugging Face bert-base-uncased tokenizer with the following configuration:
|
| 46 |
+
```python
|
| 47 |
+
tokenizer(
|
| 48 |
+
example["text"],
|
| 49 |
+
padding="max_length",
|
| 50 |
+
truncation=True,
|
| 51 |
+
max_length=512
|
| 52 |
+
)
|
| 53 |
+
```
|
| 54 |
+
The target labels are constructed as a binary vector of length 19, where each element corresponds to one of the predefined GitHub
|
| 55 |
+
issue tags (e.g., bug, enhancement, documentation, etc.). Each element in the vector is set to 1 if the tag is present for the issue, and 0 otherwise. This format enables the model to perform multi-label classification, allowing it to assign multiple relevant tags to a single GitHub issue.
|
| 56 |
+
|
| 57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
### Model Sources [optional]
|
| 60 |
|
|
|
|
| 102 |
|
| 103 |
Use the code below to get started with the model.
|
| 104 |
|
| 105 |
+
|
| 106 |
[More Information Needed]
|
| 107 |
|
| 108 |
## Training Details
|