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.4.tar.gz (2.7 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.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: classifierpratik-0.0.4.tar.gz
  • Upload date:
  • Size: 2.7 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.4.tar.gz
Algorithm Hash digest
SHA256 1c3ac7edfacb6d0f6139d79fdaecca88f73a6342be63182c3df64e77ec482312
MD5 b2fc8f46139c31407d1c32fcbb42b653
BLAKE2b-256 4d67abc5e2ac6756c94eb423f7720fb9d27d8f640a30a2e4ab470e9c8a72028d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for classifierpratik-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 58d701f54465c817f2c092ab072503490efc5f2dd6f1664f117351f9fb2736ab
MD5 b292fcee102d40cbd97f5a413a0dda06
BLAKE2b-256 eed351244bab33b4f021c685878ce999d0fb0f0eca8aa0b36e135d6cb9bbf53a

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