Spaces:
Runtime error
Runtime error
Create home.py
Browse files
home.py
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
def write():
|
4 |
+
st.markdown(
|
5 |
+
"""
|
6 |
+
<h1 style="text-align:left;">Hamshetsnag POS Tagger</h1>
|
7 |
+
""",
|
8 |
+
unsafe_allow_html=True,
|
9 |
+
)
|
10 |
+
|
11 |
+
st.write("#")
|
12 |
+
|
13 |
+
col = st.columns(2)
|
14 |
+
|
15 |
+
# Include an image/logo for branding
|
16 |
+
col[0].image("images/cauldron.jpg", width=100)
|
17 |
+
|
18 |
+
st.markdown(
|
19 |
+
"""
|
20 |
+
<h3 style="text-align:left;">A POS Tagging Tool for the Hamshetsnag Language</h3>
|
21 |
+
""", unsafe_allow_html=True,
|
22 |
+
)
|
23 |
+
|
24 |
+
st.markdown(
|
25 |
+
"""
|
26 |
+
**Features:**
|
27 |
+
|
28 |
+
- Tags parts of speech in Hamshetsnag (Hemşince) text.
|
29 |
+
- Utilizes a fine-tuned model specifically with Multilingual BERT.
|
30 |
+
- Dataset: Sequential fine-tuning with Western Armenian and Eastern Armenian UD sentences and our Hamshetsnag corpus.
|
31 |
+
- Configurable parameters for customizing tagging behavior.
|
32 |
+
|
33 |
+
Refer to the [paper](http://kelesonur.github.io/folder/hms_abstract.pdf) for more details.
|
34 |
+
|
35 |
+
### Citation:
|
36 |
+
```bibtex
|
37 |
+
@inproceedings{keles2024hamshetsnag,
|
38 |
+
title={Transfer Learning to the Rescue! Cross-Lingual Transfer for POS Tagging in an Endangered Language: Hamshetsnag},
|
39 |
+
author={Onur Keleş and Baran Günay},
|
40 |
+
booktitle={Turkey Computational Social Science Conference},
|
41 |
+
year={2024},
|
42 |
+
address={Koç University: Istanbul, Turkey}
|
43 |
+
}
|
44 |
+
```
|
45 |
+
"""
|
46 |
+
)
|
47 |
+
|
48 |
+
st.markdown(
|
49 |
+
"""
|
50 |
+
<p style="text-align:right;"><em>Please use this tool responsibly and double-check all outputs.</em></p>
|
51 |
+
""",
|
52 |
+
unsafe_allow_html=True,
|
53 |
+
)
|