File size: 1,136 Bytes
80ff553
 
 
 
 
 
 
 
 
 
 
fd9f655
80ff553
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
license: apache-2.0
tags:
- text-classification
- distilbert
- conversation-classification
- knowledge-distillation
---

# ThradBertConversationClassifier

Personal copy of a BERT model for conversation classification with hard labels I developed at [Thrad.ai](https://www.thrad.ai). [Publication](https://huggingface.co/Thrad/thrad-bert-conversation-classifier), [Publication GitHub](https://github.com/Thrads/Conversation-Classifiers), [Dev. GitHub](https://github.com/ScottBiggs2/DistilBERT-Convo.-Classifier)

## Model Details

- **Base Architecture**: DistilBERT
- **Task**: Multi-class conversation intent classification

## Usage

```python
from transformers import AutoTokenizer, AutoModelForSequenceClassification

model = AutoModelForSequenceClassification.from_pretrained("ScottBiggs2/ThradBertConversationClassifier")
tokenizer = AutoTokenizer.from_pretrained("ScottBiggs2/ThradBertConversationClassifier")

# Example inference
text = "Your conversation text here"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=512)
outputs = model(**inputs)
predictions = outputs.logits.softmax(dim=-1)
```