emvecchi commited on
Commit
184c7a0
·
verified ·
1 Parent(s): b0c2930

Update annotation_questions.py

Browse files
Files changed (1) hide show
  1. annotation_questions.py +81 -50
annotation_questions.py CHANGED
@@ -57,6 +57,27 @@ accuracy_contributor_labels = [
57
  "Emotional expressiveness"
58
  ]
59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  consent_text = '''
61
  ## Consent Form
62
  You will be asked to take part in a research study. Before you decide to take part in this study, it is important that you understand why the study is being done and what it involves. Please read the following information carefully.
@@ -133,74 +154,84 @@ fields0: List[Field] = [
133
  ]),
134
  Field(type="container", title="##### Conversational Style", children=[
135
  Field(name="conciseness", type="likert_radio",
136
- title="Are the patient's responses concise? To what degree?", other_params={"labels": degree_labels}, mandatory=True),
137
  # Field(name="symptom_desc1", type="text", title="If so, which symptoms?", mandatory=False),
138
  Field(name="colloquial", type="likert_radio",
139
- title="Does the patient use the colloquial speach? To what degree?",
140
  other_params={"labels": degree_labels}, mandatory=True),
141
  Field(name="detailedness", type="likert_radio",
142
- title="Does the patient describe specific details to help the therapist understand the situation better? To what degree?",
143
  other_params={"labels": degree_labels}, mandatory=True),
144
  Field(name="self-awareness", type="likert_radio",
145
- title="Does the patient show low self-awareness and expresses thoughts in an disorganized way? To what degree?",
146
  other_params={"labels": degree_labels}, mandatory=True),
147
 
148
  ]),
149
  Field(type="container", title="##### Behavioral & Pragmatic Properties", children=[
 
 
 
150
  Field(name="openness", type="likert_radio",
151
- title="Does the patient appear willing to engage in the therapeutic process and work on their concerns? To what degree?",
152
- other_params={"labels": degree_labels}, mandatory=True),
153
- Field(name="sarcasm", type="likert_radio",
154
- title="Does the patient use sarcasm in their responses to the therapist? To what degree?",
155
- other_params={"labels": degree_labels}, mandatory=True),
156
- Field(name="agression", type="likert_radio",
157
- title="Does the patient express verbal aggression (e.g., hostile tone, blaming, threatening language)? To what degree?",
158
  other_params={"labels": degree_labels}, mandatory=True),
159
- Field(name="controlling", type="likert_radio",
160
- title="Does the patient attempt to control the direction, pace, or content of the session (e.g., interrupting, redirecting, dismissing the therapist’s input)? To what degree?",
161
  other_params={"labels": degree_labels}, mandatory=True),
162
- Field(name="defiant", type="likert_radio",
163
- title="Does the patient openly resist, challenge, or reject the therapist’s suggestions, interpretations, or authority? To what degree?",
164
  other_params={"labels": degree_labels}, mandatory=True),
165
- Field(name="aviodant", type="likert_radio",
166
- title="Does the patient avoid discussing certain topics, emotions, or questions? To what degree?",
 
 
 
167
  other_params={"labels": degree_labels}, mandatory=True),
168
- Field(name="hesitant", type="likert_radio",
169
- title="Does the patient show any signs of mistrust and hesitation with the idea of seeking help? To what degree?",
170
  other_params={"labels": degree_labels}, mandatory=True),
171
  Field(name="solution-oriented", type="likert_radio",
172
- title="Is the patient more focused on seeking out solutions rather than just sharing thoughts and feelings? To what degree?",
173
  other_params={"labels": degree_labels}, mandatory=True),
174
- Field(name="humor", type="likert_radio",
175
- title="Does the patient use humor, jokes, or lighthearted comments (not sarcasm) to communicate or cope? To what degree?",
176
- other_params={"labels": degree_labels}, mandatory=True),
177
- Field(name="empathetic", type="likert_radio",
178
- title="Does the patient show understanding, concern, or emotional attunement—either toward the therapist or others mentioned in the session? To what degree?",
179
- other_params={"labels": degree_labels}, mandatory=True),
180
- Field(name="distracted", type="likert_radio",
181
- title="Does the patient seem mentally disengaged, lose track of the conversation, or struggle to stay focused? To what degree?",
182
- other_params={"labels": degree_labels}, mandatory=True),
183
- Field(name="responsive", type="likert_radio",
184
- title="Does the patient directly address the therapist’s questions, comments, or interventions in a relevant way? To what degree?",
185
- other_params={"labels": degree_labels}, mandatory=True),
186
- Field(name="engaged", type="likert_radio",
187
- title="Does the patient appear actively engaged when the therapist is speaking? To what degree?",
188
- other_params={"labels": degree_labels}, mandatory=True),
189
- Field(name="defensive", type="likert_radio",
190
- title="Does the patient react protectively or justify themselves when faced with feedback, interpretations, or questions about their behavior? To what degree?",
191
- other_params={"labels": degree_labels}, mandatory=True),
192
- Field(name="self-critical", type="likert_radio",
193
- title="Does the patient make negative or harsh judgments about themselves (e.g., “I’m worthless,” “It’s all my fault”)? To what degree?",
194
- other_params={"labels": degree_labels}, mandatory=True),
195
- Field(name="blaming", type="likert_radio",
196
- title="Does the patient attribute their problems or emotions to other people or external circumstances? To what degree?",
197
- other_params={"labels": degree_labels}, mandatory=True),
198
- Field(name="insightful", type="likert_radio",
199
- title="Does the patient demonstrate awareness of their own patterns, motivations, or emotions? To what degree?",
200
- other_params={"labels": degree_labels}, mandatory=True),
201
- Field(name="expressive", type="likert_radio",
202
- title="Does the patient openly convey emotions? To what degree?",
203
- other_params={"labels": degree_labels}, mandatory=True),
 
 
 
 
 
 
 
 
 
 
204
  ]),
205
 
206
 
 
57
  "Emotional expressiveness"
58
  ]
59
 
60
+ tone_behavior_labels = [
61
+ "",
62
+ "Sarcastic",
63
+ "Aggressive",
64
+ "Humorous/Comedic",
65
+ "Empathetic",
66
+ "Controlling",
67
+ "Defiant",
68
+ "Defensive",
69
+ "Self-critical",
70
+ "Accusatory",
71
+ "Insightful",
72
+ "Expressive",
73
+ "Hesitant",
74
+ "Depressive",
75
+ "Emotional",
76
+ "Excited",
77
+ "Sensitive",
78
+ "Other (please specify)"
79
+ ]
80
+
81
  consent_text = '''
82
  ## Consent Form
83
  You will be asked to take part in a research study. Before you decide to take part in this study, it is important that you understand why the study is being done and what it involves. Please read the following information carefully.
 
154
  ]),
155
  Field(type="container", title="##### Conversational Style", children=[
156
  Field(name="conciseness", type="likert_radio",
157
+ title="Are the patient's responses concise?", other_params={"labels": degree_labels}, mandatory=True),
158
  # Field(name="symptom_desc1", type="text", title="If so, which symptoms?", mandatory=False),
159
  Field(name="colloquial", type="likert_radio",
160
+ title="Does the patient use the colloquial speach?",
161
  other_params={"labels": degree_labels}, mandatory=True),
162
  Field(name="detailedness", type="likert_radio",
163
+ title="Does the patient describe specific details to help the therapist understand the situation better?",
164
  other_params={"labels": degree_labels}, mandatory=True),
165
  Field(name="self-awareness", type="likert_radio",
166
+ title="Does the patient show self-awareness and expresses thoughts in an organized manner?",
167
  other_params={"labels": degree_labels}, mandatory=True),
168
 
169
  ]),
170
  Field(type="container", title="##### Behavioral & Pragmatic Properties", children=[
171
+ Field(type="markdown", title="", mandatory=False, other_params={"instruction_content": True,
172
+ "content": "**Level of Engagement**"
173
+ },),
174
  Field(name="openness", type="likert_radio",
175
+ title="Is the patient **open** with the therapist with respect to their state or concerns?",
 
 
 
 
 
 
176
  other_params={"labels": degree_labels}, mandatory=True),
177
+ Field(name="engaged", type="likert_radio",
178
+ title="Does the patient appear **willing to engage** in the therapeutic process and work on their concerns?",
179
  other_params={"labels": degree_labels}, mandatory=True),
180
+ Field(name="responsive", type="likert_radio",
181
+ title="Does the patient **directly address** the therapist’s questions, comments, or interventions in a relevant way?",
182
  other_params={"labels": degree_labels}, mandatory=True),
183
+ #Field(name="aviodant", type="likert_radio",
184
+ # title="Does the patient avoid discussing certain topics, emotions, or questions?",
185
+ # other_params={"labels": degree_labels}, mandatory=True),
186
+ Field(name="distracted", type="likert_radio",
187
+ title="Does the patient seem **distracted**, lose track of the conversation, or struggle to stay focused?",
188
  other_params={"labels": degree_labels}, mandatory=True),
189
+ Field(name="trust", type="likert_radio",
190
+ title="Does the patient show any signs of **mistrust** towards the therapist or seeking help?",
191
  other_params={"labels": degree_labels}, mandatory=True),
192
  Field(name="solution-oriented", type="likert_radio",
193
+ title="Is the patient more focused on **seeking out solutions** rather than just sharing thoughts and feelings?",
194
  other_params={"labels": degree_labels}, mandatory=True),
195
+ Field(type="markdown", title="", mandatory=False, other_params={"instruction_content": True,
196
+ "content": "\n \n **Patient's Tone in the Interaction**"
197
+ },),
198
+ Field(name="tone_properties", type="multiselect",
199
+ title="How would you characterize the patient's tone throughout the interaction? *(Multiple selection possible)*",
200
+ other_params={'choices': tone_behavior_labels}, mandatory=True, following_mandatory_values=['Other (please specify)']),
201
+ Field(name="tone_properties_other", type="text", title="*If Other, please specify:*", mandatory=False),
202
+ #Field(name="sarcasm", type="likert_radio",
203
+ # title="Does the patient use sarcasm in their responses to the therapist?",
204
+ # other_params={"labels": degree_labels}, mandatory=True),
205
+ #Field(name="agression", type="likert_radio",
206
+ # title="Does the patient express verbal aggression (e.g., hostile tone, blaming, threatening language)?",
207
+ # other_params={"labels": degree_labels}, mandatory=True),
208
+ #Field(name="humor", type="likert_radio",
209
+ # title="Does the patient use humor, jokes, or lighthearted comments (not sarcasm) to communicate or cope?",
210
+ # other_params={"labels": degree_labels}, mandatory=True),
211
+ #Field(name="empathetic", type="likert_radio",
212
+ # title="Does the patient show understanding, concern, or emotional attunement—either toward the therapist or others mentioned in the session?",
213
+ # other_params={"labels": degree_labels}, mandatory=True),
214
+ #Field(name="controlling", type="likert_radio",
215
+ # title="Does the patient attempt to control the direction, pace, or content of the session (e.g., interrupting, redirecting, dismissing the therapist’s input)?",
216
+ # other_params={"labels": degree_labels}, mandatory=True),
217
+ #Field(name="defiant", type="likert_radio",
218
+ # title="Does the patient openly resist, challenge, or reject the therapist’s suggestions, interpretations, or authority?",
219
+ # other_params={"labels": degree_labels}, mandatory=True),
220
+ #Field(name="defensive", type="likert_radio",
221
+ # title="Does the patient react protectively or justify themselves when faced with feedback, interpretations, or questions about their behavior?",
222
+ # other_params={"labels": degree_labels}, mandatory=True),
223
+ #Field(name="self-critical", type="likert_radio",
224
+ # title="Does the patient make negative or harsh judgments about themselves (e.g., “I’m worthless,” “It’s all my fault”)?",
225
+ # other_params={"labels": degree_labels}, mandatory=True),
226
+ #Field(name="blaming", type="likert_radio",
227
+ # title="Does the patient attribute their problems or emotions to other people or external circumstances?",
228
+ # other_params={"labels": degree_labels}, mandatory=True),
229
+ #Field(name="insightful", type="likert_radio",
230
+ # title="Does the patient demonstrate awareness of their own patterns, motivations, or emotions?",
231
+ # other_params={"labels": degree_labels}, mandatory=True),
232
+ #Field(name="expressive", type="likert_radio",
233
+ # title="Does the patient openly convey emotions?",
234
+ # other_params={"labels": degree_labels}, mandatory=True),
235
  ]),
236
 
237