Text Classification
Transformers
ONNX
Safetensors
English
distilbert
intent-classification
multitask
iab
conversational-ai
adtech
calibrated-confidence
text-embeddings-inference
Instructions to use admesh/agentic-intent-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use admesh/agentic-intent-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="admesh/agentic-intent-classifier")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("admesh/agentic-intent-classifier", dtype="auto") - Notebooks
- Google Colab
- Kaggle
| import json | |
| try: | |
| from .iab_classifier import predict_iab_content_classifier # type: ignore | |
| except ImportError: | |
| from iab_classifier import predict_iab_content_classifier | |
| def predict(text: str, confidence_threshold: float | None = None): | |
| return predict_iab_content_classifier(text, confidence_threshold=confidence_threshold) | |
| examples = [ | |
| "Which laptop should I buy for college?", | |
| "What is CRM software?", | |
| "Book a table for two tonight", | |
| ] | |
| if __name__ == "__main__": | |
| for text in examples: | |
| print(f"\nInput: {text}") | |
| print("Prediction:", json.dumps(predict(text), indent=2)) | |