File size: 726 Bytes
afc4898
 
d572e8e
 
 
afc4898
acb3b1d
 
d572e8e
 
 
 
 
acb3b1d
 
d572e8e
 
 
 
 
 
acb3b1d
d572e8e
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import streamlit as st

from clarin_datasets.polemo_dataset import PolemoDataset
from clarin_datasets.abusive_clauses_dataset import AbusiveClausesDataset
from clarin_datasets.aspectemo_dataset import AspectEmoDataset

selected_dataset = st.sidebar.selectbox(
    "Choose a dataset to load",
    (
        "clarin-pl/polemo2-official",
        "laugustyniak/abusive-clauses-pl",
        "clarin-pl/aspectemo",
    ),
)

if selected_dataset == "clarin-pl/polemo2-official":
    dataset = PolemoDataset()
elif selected_dataset == "laugustyniak/abusive-clauses-pl":
    dataset = AbusiveClausesDataset()
elif selected_dataset == "clarin-pl/aspectemo":
    dataset = AspectEmoDataset()

dataset.load_data()
dataset.show_dataset()