monpaweb-dev / app.py
windyeh
revise app.py
6b6ccc2
raw
history blame
226 Bytes
import streamlit as st
import monpa
text = st.text_input('輸入 200 字以內...', '今天天氣很好!')
chunk = monpa.pseg(text)
st.write(f'斷詞結果:\n')
for item in chunk:
st.write(f'{item[0]}, {item[1]}\n')