legacy-datasets/wikipedia
Updated • 127k • 630
This model performs zero-shot text classification by dynamically integrating knowledge from Wikidata. It classifies text into custom categories without requiring training data.
from transformers import pipeline
from wikidata import get_wikidata_labels
classifier = pipeline("zero-shot-classification",
model="your-username/zero-shot-wikidata-classifier")
# Classify with Wikidata expansion
labels = get_wikidata_labels("renewable energy")
result = classifier("Perovskite solar cells achieve 30% efficiency",
candidate_labels=labels)