How hitesh05/comment-generation works
Project type and purpose
• This is a research‐oriented, machine‐learning pipeline for code‐comment relevance classification and automated comment generation.
• The README describes two main tasks:
a. Train a classifier on code‐comment relevance datasets (“Relevant” vs. “Non-relevant”).
b. Use insights from the classifier task to train a text-generation model that generates comments for code.
File structure
• Top-level directories/modules:
• Auto_comments (code2seq + deepcom): Implements the deep learning comment‐generation pipeline, Java/C# feature extraction, data preprocessing, model training and inference.
• Comment classifier: Contains notebooks and scripts to train and evaluate different classification models (TF-IDF baseline, BERT, RoBERTa, Siamese networks).
• adamo: Experiment orchestration for translation‐style comment generation on different datasets, with slurm job scripts, logs and result files.
• Scripts & utilities: python scripts (extract.py, bleu_score.py), shell scripts (preprocess.sh, train.sh, t2t.sh), multi‐BLEU scoring, Jupyter notebooks.
• Data and model files: under data/, adamo/data/, preprocessed archives, results (adamo/results).
README for additional insights
• The README only outlines the problem statement but does not describe architecture explicitly.
• Look at module readmes (e.g. Auto_comments/README.md, Comment classifier/README.md) for hints on each sub-pipeline.