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
File size: 714 Bytes
8f94f1b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | {
"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
} |