Downloads · 30 days
11
6% of all-time downloads
ProdocAI/EndConvo-health-deberta-v2
EndConvo-health-deberta-v2 is a text classification model from ProdocAI. Use it when you need a label for a piece of text.
The EndConvo-health-deberta-v2 is a fine-tuned conversational AI model based on the DeBERTa architecture. It is designed for binary classification tasks to determine whether a conversation in a health-related chatbot…
Downloads · 30 days
11
6% of all-time downloads
All-time downloads
181
Public
Parameters
184M
740 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors738 MB · 99%
From the Hugging Face model README
The EndConvo-health-deberta-v2 is a fine-tuned conversational AI model based on the DeBERTa architecture. It is designed for binary classification tasks to determine whether a conversation in a health-related chatbot has reached its endpoint or should continue. The model significantly improves efficiency by identifying conversation closure, especially in healthcare applications, where accurate and timely responses are crucial.
0 for "Continue conversation"1 for "End conversation."| Class | Precision | Recall | F1-Score | Support |
|---|---|---|---|---|
| False (Continue) | 0.87 | 0.97 | 0.91 | 313 |
| True (End) | 0.87 | 0.58 | 0.70 | 112 |
| Macro Average | 0.87 | 0.77 | 0.80 | - |
| Weighted Average | 0.87 | 0.87 | 0.86 | - |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
# Load tokenizer and model
tokenizer = AutoTokenizer.from_pretrained("MathewManoj/EndConvo-health-deberta-v2")
model = AutoModelForSequenceClassification.from_pretrained("MathewManoj/EndConvo-health-deberta-v2")
# Example text input
text = "Thank you for your help. I don't have any more questions."
# Tokenize the input
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
# Prediction
prediction = outputs.logits.argmax(dim=-1).item()
print("Prediction:", "End" if prediction == 1 else "Continue")
torchtransformerssafetensorsnumpyname: huggingface-env
channels:
- defaults
- conda-forge
dependencies:
- python=3.8
- pip
- pip:
- torch==2.4.1
- transformers==4.46.3
- safetensors