huggingface
input_error
ai_generated
true
ValueError: zero-shot classification labels invalid
ID: huggingface/zero-shot-label-error
85%Fix Rate
88%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 4 | active | — | — | — |
Root Cause
Zero-shot classification called with invalid labels.
genericWorkarounds
-
92% success Provide descriptive string labels: candidate_labels=["positive","negative"]
-
85% success Use hypothesis_template for better accuracy
Dead Ends
Common approaches that don't work:
-
Use empty labels list
90% fail
No classification possible
-
Use numeric IDs as labels
80% fail
Model expects natural language