Downloads · 30 days
17
4% of all-time downloads
Chakshu/conversation_terminator_classifier
conversation_terminator_classifier is a text classification model from Chakshu. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
probably proofread and complete it, then remove this comment. --
Downloads · 30 days
17
4% of all-time downloads
All-time downloads
464
Public
Repo size
1.9 GB
Likes
0
Public
Click a slice to open those files.
.h5217 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of google/mobilebert-uncased on an unknown dataset. It achieves the following results on the evaluation set:
from transformers import AutoTokenizer, TFBertForSequenceClassification, BertTokenizer
import tensorflow as tf
model_name = 'Chakshu/conversation_terminator_classifier'
tokenizer = BertTokenizer.from_pretrained(model_name)
model = TFBertForSequenceClassification.from_pretrained(model_name)
inputs = tokenizer("I will talk to you later", return_tensors="np", padding=True)
outputs = model(inputs.input_ids, inputs.attention_mask)
probabilities = tf.nn.sigmoid(outputs.logits)
# Round the probabilities to the nearest integer to get the class prediction
predicted_class = tf.round(probabilities)
print("The last message by the user indicates that the conversation has", "'ENDED'" if int(predicted_class.numpy()) == 1 else "'NOT ENDED'")
Classifies if the user is ending the conversation or wanting to continue it.
More information needed
More information needed
The following hyperparameters were used during training:
| Train Loss | Train Binary Accuracy | Epoch |
|---|---|---|
| 0.2552 | 0.9444 | 0 |
| 0.1295 | 0.9872 | 1 |
| 0.0707 | 0.9872 | 2 |
| 0.0859 | 0.9829 | 3 |
| 0.0484 | 0.9872 | 4 |
| 0.0363 | 0.9957 | 5 |
| 0.0209 | 1.0 | 6 |
| 0.0268 | 0.9957 | 7 |
| 0.0364 | 0.9915 | 8 |