Text Classification
Transformers
ONNX
Safetensors
Transformers.js
English
distilbert
finance
transactions
english
text-embeddings-inference
Instructions to use DoDataThings/distilbert-us-transaction-classifier-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DoDataThings/distilbert-us-transaction-classifier-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="DoDataThings/distilbert-us-transaction-classifier-v2")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("DoDataThings/distilbert-us-transaction-classifier-v2") model = AutoModelForSequenceClassification.from_pretrained("DoDataThings/distilbert-us-transaction-classifier-v2", device_map="auto") - Transformers.js
How to use DoDataThings/distilbert-us-transaction-classifier-v2 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'DoDataThings/distilbert-us-transaction-classifier-v2'); - Notebooks
- Google Colab
- Kaggle
| { | |
| "id2label": { | |
| "0": "Education", | |
| "1": "Entertainment", | |
| "2": "Fees", | |
| "3": "Groceries", | |
| "4": "Healthcare", | |
| "5": "Income", | |
| "6": "Insurance", | |
| "7": "Mortgage", | |
| "8": "Personal Care", | |
| "9": "Rent", | |
| "10": "Restaurants", | |
| "11": "Shopping", | |
| "12": "Subscription", | |
| "13": "Transfer", | |
| "14": "Transportation", | |
| "15": "Travel", | |
| "16": "Utilities" | |
| }, | |
| "label2id": { | |
| "Education": 0, | |
| "Entertainment": 1, | |
| "Fees": 2, | |
| "Groceries": 3, | |
| "Healthcare": 4, | |
| "Income": 5, | |
| "Insurance": 6, | |
| "Mortgage": 7, | |
| "Personal Care": 8, | |
| "Rent": 9, | |
| "Restaurants": 10, | |
| "Shopping": 11, | |
| "Subscription": 12, | |
| "Transfer": 13, | |
| "Transportation": 14, | |
| "Travel": 15, | |
| "Utilities": 16 | |
| } | |
| } |