Spaces:
Sleeping
Sleeping
windyeh
commited on
Commit
·
755f5cb
1
Parent(s):
2da948c
initial
Browse files- app.py +9 -0
- requirements.txt +1 -0
app.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import monpa
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
text = st.text_input('Movie title', '今天天氣很好!')
|
| 6 |
+
chunk = monpa.pseg(text)
|
| 7 |
+
st.write(f'斷詞結果:\n')
|
| 8 |
+
for item in chunk:
|
| 9 |
+
st.write(f'{item[0]}, {item[1]}\n')
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
monpa
|