Spaces:
Sleeping
Sleeping
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') | |