Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -100,6 +100,9 @@ with col1:
|
|
100 |
with col2:
|
101 |
st.header("Result")
|
102 |
|
|
|
|
|
|
|
103 |
if analyze_button:
|
104 |
ner_results = ner_pipeline(text)
|
105 |
|
@@ -110,8 +113,7 @@ with col2:
|
|
110 |
for entity in ner_results
|
111 |
])
|
112 |
|
113 |
-
|
114 |
-
st.markdown("##### Named Entity Annotation (Tagging)")
|
115 |
ner_html = generate_ner_html(text, merged_entities)
|
116 |
st.markdown(ner_html, unsafe_allow_html=True)
|
117 |
|
|
|
100 |
with col2:
|
101 |
st.header("Result")
|
102 |
|
103 |
+
# แสดงผล Named Entity Annotation
|
104 |
+
st.markdown("##### Named Entity Annotation (Tagging)")
|
105 |
+
|
106 |
if analyze_button:
|
107 |
ner_results = ner_pipeline(text)
|
108 |
|
|
|
113 |
for entity in ner_results
|
114 |
])
|
115 |
|
116 |
+
|
|
|
117 |
ner_html = generate_ner_html(text, merged_entities)
|
118 |
st.markdown(ner_html, unsafe_allow_html=True)
|
119 |
|