

from transformers import pipeline
This model is a zero-shot-classification model.
It will classify text, except you are free to choose any label you might imagine
classifier = pipeline(model="facebook/bart-large-mnli")
classifier(
     "I have a problem with my iphone that needs to be resolved asap!!",
     candidate_labels=["urgent", "not urgent", "phone", "tablet", "computer"],
 )
{'sequence': 'I have a problem with my iphone that needs to be resolved asap!!', 'labels': ['urgent', 'phone', 'computer', 'not urgent', 'tablet'], 'scores': [0.504, 0.479, 0.013, 0.003, 0.002]}