Downloads · 30 days
0
yashodhajayasinghe/nexar-quantum-language-classifier
nexar-quantum-language-classifier is a text classification model from yashodhajayasinghe. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
A high-performance programming language classification model developed for the Nexar Quantum Code Analysis Engine.
Downloads · 30 days
0
Access
Public
Updated Jul 15, 2026
Repo size
515 MB
Likes
0
Public
Click a slice to open those files.
.safetensors499 MB · 96%
From the Hugging Face model README
A high-performance programming language classification model developed for the Nexar Quantum Code Analysis Engine.
The model predicts the programming language of a source code snippet using a hybrid ensemble architecture combining a fine-tuned CodeBERT transformer with classical machine learning models.
The classifier combines multiple models to improve prediction accuracy:
The ensemble leverages transformer-based semantic understanding together with statistical TF-IDF features for robust language identification.
The model is trained to classify:
(The exact list depends on the training dataset.)
Source Code
│
▼
┌──────────────┐
│ CodeBERT │
└──────────────┘
│
▼
TF-IDF Features
│
▼
┌──────────────┐
│ XGBoost │
├──────────────┤
│ RandomForest │
├──────────────┤
│GradientBoost │
└──────────────┘
│
▼
Weighted Ensemble
│
▼
Predicted Language
The model was trained using:
Feature extraction:
| File | Description |
|---|---|
| codebert/ | Fine-tuned CodeBERT model |
| tfidf.pkl | TF-IDF Vectorizer |
| xgboost.pkl | XGBoost classifier |
| random_forest.pkl | Random Forest classifier |
| gradient_boosting.pkl | Gradient Boosting classifier |
| label_encoder.pkl | Label encoder |
| ensemble_weights.json | Ensemble weights |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("yashodhajayasinghe/nexar-quantum-language-classifier")
model = AutoModelForSequenceClassification.from_pretrained("yashodhajayasinghe/nexar-quantum-language-classifier")
Suitable for:
Performance may decrease for:
This repository contains several serialized Scikit-learn models (.pkl files).
These files were generated using joblib and contain standard Scikit-learn model objects only.
Python pickle files are inherently executable during deserialization, therefore Hugging Face's automated malware scanner may display heuristic warnings. Users should only load pickle files from trusted sources.
If you use this model in your research or project, please cite:
Nexar Quantum Language Classifier
Nexar Quantum Code Analysis Engine
2026
This project is released under the MIT License.
Yashodha Lasith Jayasinghe
Software Engineer | AI & Machine Learning Developer
GitHub: https://github.com/yashodalasith
Hugging Face: https://huggingface.co/yashodhajayasinghe