emvecchi Varvara-Gumirova commited on
Commit
2e71fb2
·
verified ·
1 Parent(s): 9f5fd59

Update annotation_questions.py (#3)

Browse files

- Update annotation_questions.py (d5d1bddb06168b768c7d8bfb54c9da440013b9fb)


Co-authored-by: Varvara <Varvara-Gumirova@users.noreply.huggingface.co>

Files changed (1) hide show
  1. annotation_questions.py +64 -4
annotation_questions.py CHANGED
@@ -28,6 +28,35 @@ yes_no_labels = ['no','yes', 'other']
28
  yes_no_other_labels = ['no','yes','other']
29
  default_labels = agreement_labels
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  consent_text = '''
32
  ## Consent Form
33
  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.
@@ -219,19 +248,50 @@ fields1: List[Field] = [
219
 
220
  ]),
221
 
222
- # ACCURACY
 
223
  Field(type="container", title="##### Overlap with role description", children=[
 
224
  Field(name="played_well", type="y_n_radio",
225
  title="The SP played the role well", other_params={"labels": degree_labels}, mandatory=True),
 
 
 
 
 
 
226
  Field(name="knew_well", type="y_n_radio",
227
- title="The SP knew his or her role well", other_params={"labels": degree_labels}, mandatory=True), # Kinda the same as ‘The SP played the role well’. Remove?
 
 
 
 
 
 
228
  Field(name="withhold", type="y_n_radio",
229
  title="The SP seemed to withhold information unnecessarily", other_params={"labels": degree_labels}, mandatory=True),
 
 
 
 
 
 
230
  Field(name="stayed_in_role_well", type="y_n_radio",
231
- title="The SP stayed in role very well during consultation ", other_params={"labels": degree_labels}, mandatory=True), # Kinda the same as ‘The SP played the role well’.
 
 
 
 
 
 
232
  Field(name="stayed_in_role_always", type="y_n_radio",
233
  title="SP stays in his/her role all the time", other_params={"labels": degree_labels}, mandatory=True),
 
 
 
 
234
  ]),
 
235
  ####--- END EDIT MARKER
236
 
237
  ####--- EDIT MARKER: Interpersonal therapeutic competence
@@ -300,4 +360,4 @@ def get_steps() -> List[List[Field]]:
300
  return STEPS
301
 
302
  def get_input_defaults() -> dict:
303
- return INPUT_FIELD_DEFAULT_VALUES
 
28
  yes_no_other_labels = ['no','yes','other']
29
  default_labels = agreement_labels
30
 
31
+ accuracy_contributor_labels = [
32
+ "",
33
+ "Explicit symptoms mentioned",
34
+ "Clear stressors discussed",
35
+ "Specific triggering event described",
36
+ "Concise communication",
37
+ "Use of colloquial speech",
38
+ "Detailed storytelling",
39
+ "Low self-awareness / disorganized thoughts",
40
+ "Willingness to engage (openness)",
41
+ "Use of sarcasm",
42
+ "Verbal aggression",
43
+ "Controlling behavior",
44
+ "Defiance/resistance",
45
+ "Topic avoidance",
46
+ "Hesitation/mistrust",
47
+ "Solution-focused (not just venting)",
48
+ "Use of humor (non-sarcastic)",
49
+ "Shows empathy",
50
+ "Appears distracted",
51
+ "Responsive to therapist",
52
+ "Actively engaged",
53
+ "Defensive reactions",
54
+ "Self-criticism",
55
+ "Blaming others",
56
+ "Shows insight",
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.
 
248
 
249
  ]),
250
 
251
+
252
+ # ACCURACY
253
  Field(type="container", title="##### Overlap with role description", children=[
254
+ # 1. Played well
255
  Field(name="played_well", type="y_n_radio",
256
  title="The SP played the role well", other_params={"labels": degree_labels}, mandatory=True),
257
+ Field(type="expander", title="**Justification for 'played well'** *(expand)*", children=[
258
+ Field(type="markdown", title="", other_params={"content": "Select traits that support your rating."}),
259
+ ]),
260
+ Field(name="played_well_just", type="accuracy_justification", title="", mandatory=False),
261
+
262
+ # 2. Knew well
263
  Field(name="knew_well", type="y_n_radio",
264
+ title="The SP knew his or her role well", other_params={"labels": degree_labels}, mandatory=True),
265
+ Field(type="expander", title="**Justification for 'knew well'** *(expand)*", children=[
266
+ Field(type="markdown", title="", other_params={"content": "Select traits that support your rating."}),
267
+ ]),
268
+ Field(name="knew_well_just", type="accuracy_justification", title="", mandatory=False),
269
+
270
+ # 3. Withhold
271
  Field(name="withhold", type="y_n_radio",
272
  title="The SP seemed to withhold information unnecessarily", other_params={"labels": degree_labels}, mandatory=True),
273
+ Field(type="expander", title="**Justification for 'withhold'** *(expand)*", children=[
274
+ Field(type="markdown", title="", other_params={"content": "Select traits that support your rating."}),
275
+ ]),
276
+ Field(name="withhold_just", type="accuracy_justification", title="", mandatory=False),
277
+
278
+ # 4. Stayed in role well
279
  Field(name="stayed_in_role_well", type="y_n_radio",
280
+ title="The SP stayed in role very well during consultation", other_params={"labels": degree_labels}, mandatory=True),
281
+ Field(type="expander", title="**Justification for 'stayed in role well'** *(expand)*", children=[
282
+ Field(type="markdown", title="", other_params={"content": "Select traits that support your rating."}),
283
+ ]),
284
+ Field(name="stayed_in_role_well_just", type="accuracy_justification", title="", mandatory=False),
285
+
286
+ # 5. Stayed in role always
287
  Field(name="stayed_in_role_always", type="y_n_radio",
288
  title="SP stays in his/her role all the time", other_params={"labels": degree_labels}, mandatory=True),
289
+ Field(type="expander", title="**Justification for 'stayed in role always'** *(expand)*", children=[
290
+ Field(type="markdown", title="", other_params={"content": "Select traits that support your rating."}),
291
+ ]),
292
+ Field(name="stayed_in_role_always_just", type="accuracy_justification", title="", mandatory=False),
293
  ]),
294
+
295
  ####--- END EDIT MARKER
296
 
297
  ####--- EDIT MARKER: Interpersonal therapeutic competence
 
360
  return STEPS
361
 
362
  def get_input_defaults() -> dict:
363
+ return INPUT_FIELD_DEFAULT_VALUES