Text Classification
setfit
Safetensors
sentence-transformers
bert
generated_from_setfit_trainer
text-embeddings-inference
Instructions to use BarryRL/test_rad_bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use BarryRL/test_rad_bert with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("BarryRL/test_rad_bert") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use BarryRL/test_rad_bert with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("BarryRL/test_rad_bert") 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 label2id.json from BarryRL/test_rad_bert: direct link, hf CLI and curl.
- Browser
- Download file 1.35 kB
-
https://huggingface.co/BarryRL/test_rad_bert/resolve/main/label2id.json
- Command line
-
hf download hf://BarryRL/test_rad_bert/label2id.json
-
curl -L -o label2id.json https://huggingface.co/BarryRL/test_rad_bert/resolve/main/label2id.json
1.35 kB
| {"air bronchograms": 0, "annual screening": 1, "benign": 2, "calcification": 3, "calcified nodule": 4, "cardiomegaly": 5, "chest ct": 6, "clinical correlation": 7, "clinical monitoring": 8, "consolidation": 9, "copd": 10, "ct recommended": 11, "ct scan": 12, "effusion": 13, "follow-up": 14, "follow-uproutine follow-up": 15, "granuloma": 16, "hear size normal": 17, "heart size normal": 18, "hyperinflation": 19, "infection": 20, "infiltrates": 21, "large heart": 22, "large nodule": 23, "lungs clear": 24, "malignancy": 25, "no abnormalities": 26, "no acute findings": 27, "no acute issues": 28, "no calcification": 29, "no calcifications": 30, "no consolidation": 31, "no contraindications": 32, "no effusion": 33, "no follow-up needed": 34, "no granuloma": 35, "no infection": 36, "no infiltrates": 37, "no lymphadenopathy": 38, "no mass": 39, "no nodules": 40, "no pheumothorax": 41, "no pleural effusion": 42, "no pleurla effusion": 43, "no pneumothorax": 44, "no tuberculosis": 45, "nodule": 46, "nodules": 47, "normal chest xray": 48, "opacity": 49, "orthopedic consult": 50, "pleural effusion": 51, "pneumonia": 52, "pneumothorax": 53, "pneumothorax resolved": 54, "previous imaging": 55, "prior infection": 56, "pulmonary nodule": 57, "repeat imaging": 58, "rib fracture": 59, "smoker": 60, "suspicious": 61, "thoracic spine": 62, "urgent": 63} |