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.9874874874874875,0.9865,0.9869934967483742,2000.0 | |
| C,0.9132374814080317,0.921,0.9171023151605676,2000.0 | |
| C#,0.9763937719738824,0.972,0.974191931846655,2000.0 | |
| C++,0.9087261785356068,0.906,0.9073610415623435,2000.0 | |
| CSS,0.9709072978303748,0.9845,0.977656405163853,2000.0 | |
| Dart,0.9794589178356713,0.9775,0.9784784784784785,2000.0 | |
| Go,0.9725411882176734,0.974,0.9732700474644017,2000.0 | |
| HTML,0.896236012207528,0.881,0.8885526979324256,2000.0 | |
| Java,0.9676777722526106,0.973,0.9703315881326352,2000.0 | |
| JavaScript,0.851581508515815,0.875,0.8631319358816276,2000.0 | |
| Kotlin,0.9863979848866499,0.979,0.9826850690087829,2000.0 | |
| Lua,0.9859084046300957,0.9795,0.9826937547027841,2000.0 | |
| Markdown,0.9464196294441662,0.945,0.9457092819614711,2000.0 | |
| Python,0.9853609288238263,0.976,0.9806581260989701,2000.0 | |
| Rust,0.9894736842105263,0.987,0.9882352941176471,2000.0 | |
| Typescript,0.9348697394789579,0.933,0.933933933933934,2000.0 | |
| accuracy,0.953125,0.953125,0.953125,0.953125 | |
| macro avg,0.9532923742336815,0.953125,0.9531865873871844,32000.0 | |
| weighted avg,0.9532923742336815,0.953125,0.9531865873871844,32000.0 | |