Sebastian Gehrmann commited on
Commit
4081c39
1 Parent(s): bac5a97

base questions

Browse files
Files changed (1) hide show
  1. datacards/context.py +55 -0
datacards/context.py CHANGED
@@ -24,6 +24,37 @@ def context_page():
24
  "context"
25
  ].get("social-impact", {})
26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  with st.expander("Impact on Under-Served Communities", expanded=False):
28
  key_pref = ["context", "underserved"]
29
  st.session_state.card_dict["context"]["underserved"] = st.session_state.card_dict[
@@ -36,6 +67,30 @@ def context_page():
36
  "context"
37
  ].get("biases", {})
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
  def context_summary():
41
  total_filled = sum(
 
24
  "context"
25
  ].get("social-impact", {})
26
 
27
+ make_text_area(
28
+ label="What tasks has this dataset been used for previously?",
29
+ key_list=key_pref + [""],
30
+ help="",
31
+ )
32
+
33
+ make_text_area(
34
+ label="Did any of these previous uses result in observations about the dataset?",
35
+ key_list=key_pref + [""],
36
+ help="",
37
+ )
38
+
39
+ make_text_area(
40
+ label="Have any changes been made to the dataset as a result of these observations?",
41
+ key_list=key_pref + [""],
42
+ help="",
43
+ )
44
+
45
+ make_text_area(
46
+ label="Task",
47
+ key_list=key_pref + [""],
48
+ help="",
49
+ )
50
+
51
+ make_text_area(
52
+ label="Dataset-specific",
53
+ key_list=key_pref + [""],
54
+ help="",
55
+ )
56
+
57
+
58
  with st.expander("Impact on Under-Served Communities", expanded=False):
59
  key_pref = ["context", "underserved"]
60
  st.session_state.card_dict["context"]["underserved"] = st.session_state.card_dict[
 
67
  "context"
68
  ].get("biases", {})
69
 
70
+ make_text_area(
71
+ label="Are there documented biases in the data?",
72
+ key_list=key_pref + [""],
73
+ help="",
74
+ )
75
+
76
+ make_text_area(
77
+ label="Link to analyses",
78
+ key_list=key_pref + [""],
79
+ help="",
80
+ )
81
+
82
+ make_text_area(
83
+ label="How does the distribution of language producers differ from a base distribution?",
84
+ key_list=key_pref + [""],
85
+ help="",
86
+ )
87
+
88
+ make_text_area(
89
+ label="Topic coverage?",
90
+ key_list=key_pref + [""],
91
+ help="",
92
+ )
93
+
94
 
95
  def context_summary():
96
  total_filled = sum(