File size: 1,035 Bytes
0b9d257
 
 
 
 
 
 
 
 
 
 
6d65afe
0b9d257
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---

# thrad-bert-conversation-classifier

BERT model for conversation intent classification with hard labels. For additional information about the data preprocessing, training, or evaluation, refer to the public repository for the project [[here](https://github.com/Thrads/Conversation-Classifiers)].

## Model Details

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

## Usage

```python
from transformers import AutoTokenizer, AutoModelForSequenceClassification

model = AutoModelForSequenceClassification.from_pretrained("Thrad/thrad-bert-conversation-classifier")
tokenizer = AutoTokenizer.from_pretrained("Thrad/thrad-bert-conversation-classifier")

# 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)
```