SDE Downstreams
Collection
Various downstream models for NASA's Science Discovery Engine (SDE)
•
4 items
•
Updated
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)
Base model
nasa-impact/indus-sde-v0.2