Text Classification
setfit
Safetensors
sentence-transformers
mpnet
generated_from_setfit_trainer
Eval Results (legacy)
text-embeddings-inference
Instructions to use souvenger/NLP2Linux with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use souvenger/NLP2Linux with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("souvenger/NLP2Linux") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use souvenger/NLP2Linux with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("souvenger/NLP2Linux") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Download config_setfit.json from souvenger/NLP2Linux: direct link, hf CLI and curl.
- Browser
- Download file 714 Bytes
-
https://huggingface.co/souvenger/NLP2Linux/resolve/main/config_setfit.json
- Command line
-
hf download hf://souvenger/NLP2Linux/config_setfit.json
-
curl -L -o config_setfit.json https://huggingface.co/souvenger/NLP2Linux/resolve/main/config_setfit.json
714 Bytes
| { | |
| "labels": [ | |
| "cat README.md", | |
| "cat config.ini", | |
| "cat data.csv", | |
| "cat notes.txt", | |
| "cat script.sh", | |
| "cd", | |
| "cp file1 /destination", | |
| "cp file2 /backup", | |
| "cp file3 /archive", | |
| "cp file4 /temp", | |
| "cp file5 /images", | |
| "grep 'keyword' document.txt", | |
| "grep 'pattern' data.txt", | |
| "grep 'word' text.txt", | |
| "ls", | |
| "mkdir data", | |
| "mkdir docs", | |
| "mkdir images", | |
| "mkdir projects", | |
| "mkdir scripts", | |
| "mv file2 /new_location", | |
| "mv file3 /backup", | |
| "mv file4 /archive", | |
| "mv file5 /temp", | |
| "mv file6 /images", | |
| "rm backup.txt", | |
| "rm example.txt", | |
| "rm file1", | |
| "rm file2", | |
| "rm temp.txt" | |
| ], | |
| "normalize_embeddings": false | |
| } |