Downloads · 30 days
8
0% of all-time downloads
burakkececi/bert-software-engineering
bert-software-engineering is a fill-mask model from burakkececi. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as mit.
This repository was created within the scope of computer engineering undergraduate graduation project.
Downloads · 30 days
8
0% of all-time downloads
All-time downloads
1.7K
Public
Parameters
110M
438 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
This repository was created within the scope of computer engineering undergraduate graduation project.
This research aims to perform an exploratory case study to determine the functional dimensions of user requirements or use cases for software projects. In order to perform this task we created two models, SE-BERT and SE-BERTurk.
You can find a detailed description of the project at the link.
SE-BERT is a BERT model trained for domain adaptation in a software engineering context.
We applied Masked Language Modeling (MLM), an unsupervised learning technique, for domain adaptation. MLM enhances the model understanding of domain-specific language by masking portions of the input text and training the model to predict the masked words based on the surrounding context.
Created a bilingual SE corpus (166Mb) ➡️ Descriptive stats of the corpus
The final training corpus has a size of 166MB and 10.554.750 words.
Used AdamW optimizer and set num_epochs = 1, lr = 2e-5, eps = 1e-8
batch_size = 6 (13.5Gb memory)batch_size = 50 (37Gb memory) and fp16 = TruePerplexity
6,673 PPL for SE-BERTPPL (perplexity) on the test corpus (10K context with a maximum length of 512 tokens)PPL (perplexity) on the requirement datasetsMAE, MSE, MMRE, PRED(30), ACCWith Transformers >= 2.11 our SE-BERT uncased model can be loaded like:
from transformers import AutoModel, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("burakkececi/bert-software-engineering/model")
model = AutoModel.from_pretrained("burakkececi/bert-software-engineering/tokenizer")
All models are available on the Huggingface model hub.