Instructions to use facebook/bart-large-mnli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/bart-large-mnli with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="facebook/bart-large-mnli")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("facebook/bart-large-mnli") model = AutoModelForSequenceClassification.from_pretrained("facebook/bart-large-mnli") - Inference
- Notebooks
- Google Colab
- Kaggle
chunk finder
#6
by p1yush99 - opened
I'm trying this classifier for my tag, is there anyway that I can find out those chunk for words in the sequence which is responsible for this probability
ex. sequence = "I'm playing cricket"
tag = ['sport']
probability = 99.99 %
so I want to extract "playing cricket" from whole sequence