Spaces:
Runtime error
Runtime error
File size: 1,515 Bytes
afc4898 d572e8e c28d81d afc4898 acb3b1d d572e8e c28d81d d572e8e acb3b1d d572e8e c28d81d 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
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
from clarin_datasets.kpwr_ner_datasets import KpwrNerDataset
from clarin_datasets.punctuation_restoration_dataset import (
PunctuationRestorationDataset,
)
from clarin_datasets.nkjp_pos_dataset import NkjpPosDataset
from clarin_datasets.cst_wikinews_dataset import CSTWikinewsDataset
selected_dataset = st.sidebar.selectbox(
"Choose a dataset to load",
(
"clarin-pl/polemo2-official",
"laugustyniak/abusive-clauses-pl",
"clarin-pl/aspectemo",
"clarin-pl/kpwr-ner",
"clarin-pl/2021-punctuation-restoration",
"clarin-pl/nkjp-pos",
"clarin-pl/cst-wikinews",
),
)
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()
elif selected_dataset == "clarin-pl/kpwr-ner":
dataset = KpwrNerDataset()
elif selected_dataset == "clarin-pl/2021-punctuation-restoration":
dataset = PunctuationRestorationDataset()
elif selected_dataset == "clarin-pl/nkjp-pos":
dataset = NkjpPosDataset()
elif selected_dataset == "clarin-pl/cst-wikinews":
dataset = CSTWikinewsDataset()
dataset.load_data()
dataset.show_dataset()
|