Downloads · 30 days
13
0% of all-time downloads
diwank/dyda-deberta-pair
dyda-deberta-pair is a text classification model from diwank. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
Deberta-based Daily Dialog style dialog-act annotations classification model. It takes two sentences as inputs (one previous and one current of a dialog). The previous sentence can be an empty string if this is the fi…
Downloads · 30 days
13
0% of all-time downloads
All-time downloads
2.9K
Public
Repo size
2.8 GB
Likes
0
Public
Click a slice to open those files.
.pt1.1 GB · 50%
From the Hugging Face model README
Deberta-based Daily Dialog style dialog-act annotations classification model. It takes two sentences as inputs (one previous and one current of a dialog). The previous sentence can be an empty string if this is the first utterance of a speaker in a dialog. Outputs one of four labels (exactly as in the daily-dialog dataset ): dummy (0), inform (1), question (2), directive (3), commissive (4)
from simpletransformers.classification import (
ClassificationModel, ClassificationArgs
)
model = ClassificationModel("deberta", "diwank/dyda-deberta-pair")
convert_to_label = lambda n: ["__dummy__ (0), inform (1), question (2), directive (3), commissive (4)".split(', ')[i] for i in n]
predictions, raw_outputs = model.predict([["Say what is the meaning of life?", "I dont know"]])
convert_to_label(predictions) # inform (1)