georgedavila / bart-large-mnli-classifier

Zero-shot classifier which classifies text into categories of your choosing. Returns a dictionary of the most likely class and all class likelihoods.

  • Public
  • 3.6K runs
  • T4
  • GitHub

Input

string
Shift + Return to add a new line

Text you want to classify.

Default: "Add salt to boiling water to prevent pasta from sticking together"

string
Shift + Return to add a new line

Possible class names (comma-separated). This is a zero-shot classifier so you can try any label you'd like. The model will output the top label under key 'mostLikelyClass'.

Default: "Cooking Instructions, Question about Astronomy"

Output

{ "allClasses": { "Cooking Instructions": 0.9597448110580444, "Question about Astronomy": 0.04025513678789139 }, "mostLikelyClass": "Cooking Instructions" }
Generated in

Run time and cost

This model costs approximately $0.00058 to run on Replicate, or 1724 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia T4 GPU hardware. Predictions typically complete within 3 seconds.

Readme

Output is a dictionary with key ‘mostLikelyClass’ giving the most likely class and key ‘allClasses’ giving a dictionary of all class likelihoods.