Mariusz Kossakowski commited on
Commit
08bbbaf
·
1 Parent(s): 2b9d84c

Add components to CST-Wikinews dataset

Browse files
clarin_datasets/cst_wikinews_dataset.py CHANGED
@@ -20,4 +20,15 @@ class CSTWikinewsDataset(DatasetToShow):
20
  }
21
 
22
  def show_dataset(self):
23
- pass
 
 
 
 
 
 
 
 
 
 
 
 
20
  }
21
 
22
  def show_dataset(self):
23
+ header = st.container()
24
+ dataframe_head = st.container()
25
+
26
+ with header:
27
+ st.title(self.dataset_name)
28
+
29
+ with dataframe_head:
30
+ st.header("First 10 observations of the chosen subset")
31
+ subset_to_show = st.selectbox(label="Select subset to see", options=self.subsets)
32
+ df_to_show = self.data_dict[subset_to_show].head(10)
33
+ st.dataframe(df_to_show)
34
+ st.text_area(label="LaTeX code", value=df_to_show.style.to_latex())