Spaces:
Runtime error
Runtime error
Szymon Woźniak
commited on
Commit
·
eef0f47
1
Parent(s):
795404d
make app multipage, add language typology data
Browse files- app.py → MMS_Benchmark.py +5 -0
- README.md +1 -1
- data/language_typology.tsv +28 -0
- pages/1_Language_Typology.py +23 -0
app.py → MMS_Benchmark.py
RENAMED
@@ -1,6 +1,11 @@
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
|
|
|
|
|
|
|
|
|
|
|
4 |
df = pd.read_parquet("test.parquet")
|
5 |
|
6 |
st.dataframe(df)
|
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
|
4 |
+
st.set_page_config(
|
5 |
+
page_title="Hello",
|
6 |
+
page_icon="👋",
|
7 |
+
)
|
8 |
+
|
9 |
df = pd.read_parquet("test.parquet")
|
10 |
|
11 |
st.dataframe(df)
|
README.md
CHANGED
@@ -5,7 +5,7 @@ colorFrom: indigo
|
|
5 |
colorTo: pink
|
6 |
sdk: streamlit
|
7 |
sdk_version: 1.21.0
|
8 |
-
app_file:
|
9 |
pinned: false
|
10 |
---
|
11 |
|
|
|
5 |
colorTo: pink
|
6 |
sdk: streamlit
|
7 |
sdk_version: 1.21.0
|
8 |
+
app_file: MMS_Benchmark.py
|
9 |
pinned: false
|
10 |
---
|
11 |
|
data/language_typology.tsv
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Language Family Genus Definite articles Indefinite articles Number of cases Order of subject, object, verb Negative morphemes Polar questions Position of negative word wrt SOV Prefixing vs suffixing Coding of nominal plurality Grammatical genders
|
2 |
+
Albanian Indo-European Albanian definite affix indefinite word distinct from one 4 SVO negative particle question particle SNegVO strongly suffixing plural suffix masculine, feminine
|
3 |
+
Arabic Afro-Asiatic Semitic definite affix no article 3 SVO negative particle interrogative intonation only SNegVO weakly suffixing mixed morphological plural masculine, feminine
|
4 |
+
Bosnian Indo-European Slavic no article no article 5 SVO negative particle question particle other strongly suffixing plural suffix masculine, feminine, neuter
|
5 |
+
Bulgarian Indo-European Slavic definite word distinct from demonstrative no article no morphological case-making SVO negative particle question particle SNegVO strongly suffixing plural suffix masculine, feminine, neuter
|
6 |
+
Chinese Sino-Tibetan Chinese no article indefinite word same as one no morphological case-making SVO negative particle question particle SNegVO little affixation no plural noun classifiers
|
7 |
+
Croatian Indo-European Slavic no article no article 5 SVO negative particle question particle other strongly suffixing plural suffix masculine, feminine, neuter
|
8 |
+
Czech Indo-European Slavic no article no article 6-7 SVO negative affix interrogative word order MorphNeg weakly suffixing plural suffix masculine, feminine, neuter
|
9 |
+
English Indo-European Germanic definite word distinct from demonstrative indefinite word distinct from one 2 SVO negative particle interrogative word order SNegVO strongly suffixing plural suffix no grammatical gender
|
10 |
+
French Indo-European Romance definite word distinct from demonstrative indefinite word same as one no morphological case-making SVO negative particle question particle OptDoubleNeg strongly suffixing plural suffix masculine, feminine
|
11 |
+
German Indo-European Germanic definite word distinct from demonstrative indefinite word same as one 4 no dominant order negative particle interrogative word order more than one position strongly suffixing plural suffix masculine, feminine, neuter
|
12 |
+
Hebrew Afro-Asiatic Semitic definite affix indefinite word same as one no morphological case-making SVO negative particle question particle SNegVO weakly suffixing plural suffix masculine, feminine
|
13 |
+
Hindi Indo-European Indic no article no article 3 SOV negative particle question particle SONegV strongly suffixing plural suffix masculine, feminine
|
14 |
+
Hungarian Uralic Ugric definite word distinct from demonstrative indefinite word distinct from one 10 or more no dominant order negative particle question particle SNegVO strongly suffixing plural suffix no grammatical gender
|
15 |
+
Italian Indo-European Romance definite word distinct from demonstrative indefinite word same as one no morphological case-making SVO negative particle interrogative intonation only SNegVO strongly suffixing plural suffix masculine, feminine
|
16 |
+
Japanese Japanese Japanese no article indefinite word distinct from one 8-9 SOV negative affix question particle MorphNeg strongly suffixing plural suffix no grammatical gender
|
17 |
+
Latvian Indo-European Baltic demonstrative word used as definite article indefinite word same as one 5 SVO negative affix question particle MorphNeg weakly suffixing plural suffix masculine, feminine
|
18 |
+
Persian Indo-European Iranian no article indefinite word same as one 2 SOV negative affix question particle MorphNeg weakly suffixing plural suffix no grammatical gender
|
19 |
+
Polish Indo-European Slavic no article no article 6-7 SVO negative particle question particle SNegVO strongly suffixing plural suffix masculine, feminine, neuter
|
20 |
+
Portuguese Indo-European Romance definite word distinct from demonstrative indefinite word same as one no morphological case-making SVO negative particle question particle SNegVO strongly suffixing plural suffix masculine, feminine
|
21 |
+
Russian Indo-European Slavic no article no article 6-7 SVO negative particle question particle SNegVO strongly suffixing plural suffix masculine, feminine, neuter
|
22 |
+
Serbian Indo-European Slavic no article no article 5 SVO negative particle question particle other strongly suffixing plural suffix masculine, feminine, neuter
|
23 |
+
Slovak Indo-European Slavic no article no article 6-7 SVO negative affix interrogative word order MorphNeg weakly suffixing plural suffix masculine, feminine, neuter
|
24 |
+
Slovenian Indo-European Slavic no article no article 6-7 SVO negative particle question particle SNegVO strongly suffixing plural suffix masculine, feminine, neuter
|
25 |
+
Spanish Indo-European Romance definite word distinct from demonstrative indefinite word same as one no morphological case-making SVO negative particle interrogative word order SNegVO strongly suffixing plural suffix masculine, feminine
|
26 |
+
Swedish Indo-European Germanic definite affix indefinite word same as one 2 SVO negative particle interrogative word order more than one position strongly suffixing plural suffix common, neuter
|
27 |
+
Thai Tai-Kadai Kam-Tai no article indefinite word distinct from one no morphological case-making SVO negative auxiliary verb question particle SNegVO little affixation mixed morphological plural noun classifiers
|
28 |
+
Urdu Indo-European Indic no article no article 2 SOV negative affix question particle SONegV strongly suffixing plural suffix masculine, feminine
|
pages/1_Language_Typology.py
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import time
|
3 |
+
import numpy as np
|
4 |
+
import pandas as pd
|
5 |
+
|
6 |
+
|
7 |
+
@st.cache_data
|
8 |
+
def get_typology_df():
|
9 |
+
return pd.read_csv("data/language_typology.tsv", sep="\t")
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
st.set_page_config(page_title="Language Typology", page_icon="📈")
|
14 |
+
|
15 |
+
st.markdown("# Language Typology")
|
16 |
+
st.sidebar.header("Language Typology")
|
17 |
+
st.write(
|
18 |
+
"""TODO: Description"""
|
19 |
+
)
|
20 |
+
|
21 |
+
df = get_typology_df()
|
22 |
+
|
23 |
+
st.dataframe(df)
|