You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the huggingface transformers zero shot classification pipeline.
from transformers import pipeline
classifier = pipeline("zero-shot-classification",
model="facebook/bart-large-mnli")
sequence_to_classify = "one day I will see the world"
candidate_labels = ['travel', 'cooking', 'dancing']
classifier(sequence_to_classify, candidate_labels)
I would like to use the word importance feature of the interpret-text module to get the important words for the predicted label.
Can you please help on how I could do this ?
Thanks,
Subham
The text was updated successfully, but these errors were encountered:
Hi
I am using the huggingface transformers zero shot classification pipeline.
I would like to use the word importance feature of the interpret-text module to get the important words for the predicted label.
Can you please help on how I could do this ?
Thanks,
Subham
The text was updated successfully, but these errors were encountered: