semvec/pypi-packages huggingface dataset:
classifierPratik 0.0.4
Zero-shot classification package using Transformers
Requires Python: >=3.10

from classifierPratik import ZeroShotClassifier

# Initialize the classifier
clf = ZeroShotClassifier()

# Define your text and candidate labels
text = "Book me a flight to Paris"
labels = ["healthcare", "travel", "not_answerable"]

# Predict the best label
best_label = clf.predict(text, labels)
print(best_label)  # Output: "travel"