Text Classification
fastText
English
scikit-learn
code-classification
programming-language-detection
source-code
machine-learning
modernbert
classification
nlp
code-analysis
software-engineering
Eval Results (legacy)
Instructions to use kaushik-harsh-99/Code-Lang-Classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- fastText
How to use kaushik-harsh-99/Code-Lang-Classifier with fastText:
from huggingface_hub import hf_hub_download import fasttext model = fasttext.load_model(hf_hub_download("kaushik-harsh-99/Code-Lang-Classifier", "model.bin")) - Notebooks
- Google Colab
- Kaggle
| ,precision,recall,f1-score,support | |
| Assembly,0.9929789368104313,0.99,0.9914872308462694,2000.0 | |
| C,0.9302558956347216,0.927,0.9286250939143501,2000.0 | |
| C#,0.977710233029382,0.965,0.9713135379969804,2000.0 | |
| C++,0.912873225648556,0.9325,0.9225822409102152,2000.0 | |
| CSS,0.961895456765999,0.9845,0.9730664689893749,2000.0 | |
| Dart,0.9804511278195489,0.978,0.979224030037547,2000.0 | |
| Go,0.9788199697428139,0.9705,0.9746422294752699,2000.0 | |
| HTML,0.8991383679675621,0.887,0.8930279385854518,2000.0 | |
| Java,0.9728370221327968,0.967,0.9699097291875627,2000.0 | |
| JavaScript,0.8583252190847127,0.8815,0.8697582634435126,2000.0 | |
| Kotlin,0.9859508278976418,0.9825,0.9842223891810669,2000.0 | |
| Lua,0.986404833836858,0.9795,0.982940291018565,2000.0 | |
| Markdown,0.947289156626506,0.9435,0.9453907815631263,2000.0 | |
| Python,0.977977977977978,0.977,0.9774887443721861,2000.0 | |
| Rust,0.9875,0.9875,0.9875,2000.0 | |
| Typescript,0.9411172622043281,0.935,0.9380486581389516,2000.0 | |
| accuracy,0.9555,0.9555,0.9555,0.9555 | |
| macro avg,0.9557203445737397,0.9555,0.9555767267287768,32000.0 | |
| weighted avg,0.9557203445737398,0.9555,0.9555767267287769,32000.0 | |