Preechanon Chatthai
commited on
Commit
•
21d0659
1
Parent(s):
722a04d
Update app.py
Browse files
app.py
CHANGED
@@ -107,26 +107,26 @@ def tokenize(text):
|
|
107 |
model = model_()
|
108 |
model.load_weights("cutto_tf2.h5")
|
109 |
st.title("Cutto Thai word seggmentation.")
|
110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
Evaluate the model performance using the test dataset divided from BEST CORPUS 2009, which comprises 10 percent, with the following scores:
|
112 |
- F1-Score: 98.37
|
113 |
- Precision: 98.02
|
114 |
- Recall: 98.67
|
115 |
|
116 |
-
|
117 |
NSTDA Supercomputer center (ThaiSC) and the National e-Science Infrastructure Consortium for their support of computer facilities.
|
118 |
|
119 |
-
|
120 |
If you use cutto in your project or publication, please cite the model as follows:
|
121 |
ปรีชานนท์ ชาติไทย และ สัจจวัจน์ ส่งเสริม. (2567), การสรุปข้อความข่าวภาษาไทยด้วยโครงข่ายประสาทเทียม (Thai News Text Summarization Using Neural Network), วิทยาศาสตรบัณฑิต (วทบ.):ขอนแก่น, มหาวิทยาลัยขอนแก่น
|
122 |
'''
|
123 |
-
st.markdown(multi)
|
124 |
-
text = st.text_area("Enter original text!")
|
125 |
-
if st.button("cut it!!"):
|
126 |
-
if text:
|
127 |
-
words = tokenize(text)
|
128 |
-
st.subheader("seggemt:")
|
129 |
-
st.write('|'.join(words))
|
130 |
-
else:
|
131 |
-
st.warning("Please enter some text to seggmentation")
|
132 |
-
|
|
|
107 |
model = model_()
|
108 |
model.load_weights("cutto_tf2.h5")
|
109 |
st.title("Cutto Thai word seggmentation.")
|
110 |
+
text = st.text_area("Enter original text!")
|
111 |
+
if st.button("cut it!!"):
|
112 |
+
if text:
|
113 |
+
words = tokenize(text)
|
114 |
+
st.subheader("seggemt:")
|
115 |
+
st.write('|'.join(words))
|
116 |
+
else:
|
117 |
+
st.warning("Please enter some text to seggmentation")
|
118 |
+
|
119 |
+
multi = '''### Score
|
120 |
Evaluate the model performance using the test dataset divided from BEST CORPUS 2009, which comprises 10 percent, with the following scores:
|
121 |
- F1-Score: 98.37
|
122 |
- Precision: 98.02
|
123 |
- Recall: 98.67
|
124 |
|
125 |
+
### Resource Funding
|
126 |
NSTDA Supercomputer center (ThaiSC) and the National e-Science Infrastructure Consortium for their support of computer facilities.
|
127 |
|
128 |
+
### Citation
|
129 |
If you use cutto in your project or publication, please cite the model as follows:
|
130 |
ปรีชานนท์ ชาติไทย และ สัจจวัจน์ ส่งเสริม. (2567), การสรุปข้อความข่าวภาษาไทยด้วยโครงข่ายประสาทเทียม (Thai News Text Summarization Using Neural Network), วิทยาศาสตรบัณฑิต (วทบ.):ขอนแก่น, มหาวิทยาลัยขอนแก่น
|
131 |
'''
|
132 |
+
st.markdown(multi)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|