Downloads · 30 days
10
2% of all-time downloads
clulab/roberta-base-motivational-interviewing
roberta-base-motivational-interviewing is a text classification model from clulab. 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.
⚠ WARNING: This is a preliminary model that is still actively under development. ⚠
Downloads · 30 days
10
2% of all-time downloads
All-time downloads
484
Public
Repo size
1.5 GB
Likes
1
Public
Click a slice to open those files.
.bin499 MB · 99%
From the Hugging Face model README
⚠ WARNING: This is a preliminary model that is still actively under development. ⚠
This is a roBERTa-base model fine-tuned on a small dataset of conversations between health coaches and cancer survivors.
You can use this model directly with a pipeline for text classification:
>>> import transformers
>>> model_name = "clulab/roberta-base-motivational-interviewing"
>>> classifier = transformers.TextClassificationPipeline(
... tokenizer=transformers.AutoTokenizer.from_pretrained(model_name),
... model=transformers.AutoModelForSequenceClassification.from_pretrained(model_name))
>>> classifier("I'm planning on having tuna, ground tuna, chopped celery, and chopped black pepper, and half a apple.")
[{'label': 'change_talk_goal_talk_and_opportunities', 'score': 0.9995419979095459}]
The model is intended to be used for text classification, taking as input conversational utterances and predicting as output different categories of motivational interviewing behaviors.
It is intended for use by health coaches to assist when reviewing their past calls with participants. Its predictions should not be used without manual review.
The model was trained on data annotated under the grant Using Natural Language Processing to Determine Predictors of Healthy Diet and Physical Activity Behavior Change in Ovarian Cancer Survivors (NIH NCI R21CA256680). A roberta-base model was fine-tuned on that dataset, with texts tokenized using the standard roberta-base tokenizer.
On the test partition of the R21CA256680 dataset, the model achieves 0.60 precision and 0.46 recall.