Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
license: apache-2.0
|
5 |
+
library_name: transformers
|
6 |
+
pipeline_tag: text-classification
|
7 |
+
tags:
|
8 |
+
- motivational-interviewing
|
9 |
+
metrics:
|
10 |
+
- f1
|
11 |
+
widget:
|
12 |
+
- text: >-
|
13 |
+
I'm planning on having tuna, ground tuna, chopped celery, and chopped black
|
14 |
+
pepper, and half a apple.
|
15 |
+
example_title: change_talk_goal_talk_and_opportunities
|
16 |
+
---
|
17 |
+
|
18 |
+
# Model Card for roberta-base-motivational-interviewing
|
19 |
+
|
20 |
+
⚠ WARNING: This is a preliminary model that is still actively under development. ⚠
|
21 |
+
|
22 |
+
This is a [roBERTa-base](https://huggingface.co/roberta-base) model fine-tuned on a small dataset of conversations between health coaches and cancer survivors.
|
23 |
+
|
24 |
+
# How to Get Started with the Model
|
25 |
+
|
26 |
+
You can use this model directly with a pipeline for text classification:
|
27 |
+
|
28 |
+
```python
|
29 |
+
>>> import transformers
|
30 |
+
>>> model_name = "clulab/roberta-base-motivational-interviewing"
|
31 |
+
>>> classifier = transformers.TextClassificationPipeline(
|
32 |
+
... tokenizer=transformers.AutoTokenizer.from_pretrained(model_name),
|
33 |
+
... model=transformers.AutoModelForSequenceClassification.from_pretrained(model_name))
|
34 |
+
>>> classifier("I'm planning on having tuna, ground tuna, chopped celery, and chopped black pepper, and half a apple.")
|
35 |
+
[{'label': 'change_talk_goal_talk_and_opportunities', 'score': 0.9995419979095459}]
|
36 |
+
```
|
37 |
+
|
38 |
+
# Model Details
|
39 |
+
|
40 |
+
- **Developed by:** [Steven Bethard](https://bethard.github.io/)
|
41 |
+
- **Parent Model:** [roBERTa-base](https://huggingface.co/roberta-base)
|
42 |
+
- **GitHub Repo:** [LIvES repo](https://github.com/clulab/lives)
|
43 |
+
|
44 |
+
# Uses
|
45 |
+
|
46 |
+
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.
|
47 |
+
|
48 |
+
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.
|
49 |
+
|
50 |
+
# Training Details
|
51 |
+
|
52 |
+
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)](https://reporter.nih.gov/project-details/10510666). A [roberta-base](https://huggingface.co/roberta-base) model was fine-tuned on that dataset, with texts tokenized using the standard [roberta-base](https://huggingface.co/roberta-base) tokenizer.
|
53 |
+
|
54 |
+
# Evaluation
|
55 |
+
|
56 |
+
On the test partition of the R21CA256680 dataset, the model achieves 0.60 precision and 0.46 recall.
|