Text Classification
Transformers
Safetensors
English
modernbert
banking
finance
intent-classification
customer-support
banking77
ettin
text-embeddings-inference
Instructions to use CobuildX-AI/cbx-bfs-banking-intent-classifier-17M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CobuildX-AI/cbx-bfs-banking-intent-classifier-17M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="CobuildX-AI/cbx-bfs-banking-intent-classifier-17M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("CobuildX-AI/cbx-bfs-banking-intent-classifier-17M") model = AutoModelForSequenceClassification.from_pretrained("CobuildX-AI/cbx-bfs-banking-intent-classifier-17M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 883 Bytes
d7c69c2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # Copyright 2026 Cobuild Tech Private Limited
# SPDX-License-Identifier: Apache-2.0
"""Run from the model folder: python example.py (all messages below are invented)"""
from cbx_intent import IntentClassifier
clf = IntentClassifier(".")
messages = [
"My new card was posted ten days ago and it still hasn't shown up",
"Can I add money to my account using Google Pay?",
"I sent 200 euros to my sister on Monday and she says nothing has arrived",
"The cash machine at the station kept my card, what now?",
"Why was I charged a fee for taking cash out at an ATM?",
"I typed the wrong PIN too many times and now it's locked",
"There's a payment from a shop I've never been to on my statement",
"how old do u have to be to open an account",
]
for r in clf.classify(messages):
print(f"{r['text'][:60]:60s} -> {r['intent']} ({r['confidence']:.2f})")
|