Downloads · 30 days
15
21% of all-time downloads
nasa-impact/sde-content-relevancy
sde-content-relevancy is a text classification model from nasa-impact. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This is a single label classification task for automated relevancy tagging of documents in Science Discovery Engine. The idx to label mapping is:
Downloads · 30 days
15
21% of all-time downloads
All-time downloads
73
Public
Parameters
125M
500 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors500 MB · 99%
From the Hugging Face model README
This is a single label classification task for automated relevancy tagging of documents in Science Discovery Engine. The idx to label mapping is:
"0": "Not Relevant",
"1": "Relevant",
Total data = 299k (106k relevant/193k non-relevant)



You can load this model using the Hugging Face 🤗 Transformers library:
from transformers import pipeline
classifier = pipeline("text-classification", model="nasa-impact/sde-content-relevancy")
prediction = classifier("Your input text", truncation=True, padding="max_length", max_length=512)
print(prediction)
from transformers import AutoTokenizer, AutoModelForSequenceClassification
model_name = "nasa-impact/sde-content-relevancy"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
inputs = tokenizer("Your input text", return_tensors="pt", truncation=True, max_length=512, padding="max_length")
outputs = model(**inputs)
predicted_label = outputs.logits.argmax(-1).item()
print(predicted_label)