File size: 577 Bytes
b78f200 d7ef1a8 1143c40 d7ef1a8 e5a7a6b b78f200 e9e5440 437c19b 701333f 13b9c74 6ded373 701333f 3c59a2f 701333f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import streamlit as st
from unikud.framework import Unikud
with st.spinner('Loading UNIKUD framework...'):
u = Unikud()
st.success('Loaded!')
text = st.text_area('Enter Hebrew text and press ctrl/command+enter to add nikud:')
kwargs = {
'v_thresh': st.sidebar.slider("Vowel addition threshold", min_value=0., max_value=1., value=0.5),
'o_thresh': st.sidebar.slider("Other diacritic threshold", min_value=0., max_value=1., value=0.5),
'd_thresh': st.sidebar.slider("Deletion threshold", min_value=0., max_value=1., value=0.5)
}
if text:
st.write(u(text, **kwargs)) |