Skip to main content

Zero-shot classification package using Transformers

Project description

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"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

classifierpratik-0.0.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

classifierpratik-0.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file classifierpratik-0.0.1.tar.gz.

File metadata

  • Download URL: classifierpratik-0.0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for classifierpratik-0.0.1.tar.gz
Algorithm Hash digest
SHA256 90c0df790e6078e6b80d2712e453000c5a5a428ecb8c799e8c2903dbb7f4aee5
MD5 c4929543f4bfee5fadce064b8d02bf75
BLAKE2b-256 ccc00feeda8e143c58f80bd815fd6042bfce830b3ef998897037060cfb06bc65

See more details on using hashes here.

File details

Details for the file classifierpratik-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for classifierpratik-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 638627afb4365d44aaa13e1d979d6d0719c6f08a29a83a79587de017d7342cfd
MD5 34a6ba69b827675be0d0fa4b96f079e9
BLAKE2b-256 093ccb7b4a829385f303797c7bced1a3c65db1a56f25b02888ead017575cbe61

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page