Upload Homepage.py
Browse files
streamlit_app.py/pages/Homepage.py
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from st_pages import Page, show_pages
|
3 |
+
|
4 |
+
st.set_page_config(page_title="Sentiment Analysis", page_icon="🏠")
|
5 |
+
|
6 |
+
show_pages(
|
7 |
+
[
|
8 |
+
Page("streamlit_app.py/Homepage.py", "Home", "🏠"),
|
9 |
+
Page(
|
10 |
+
"streamlit_app.py/pages/Sentiment_Analysis.py", "Sentiment Analysis", "📝"
|
11 |
+
),
|
12 |
+
]
|
13 |
+
)
|
14 |
+
|
15 |
+
st.title("Final Project in Machine Learning Course - Sentiment Analysis")
|
16 |
+
st.markdown(
|
17 |
+
"""
|
18 |
+
**Team members:**
|
19 |
+
| Student ID | Full Name |
|
20 |
+
| ---------- | ------------------------ |
|
21 |
+
| 19120600 | Bùi Nguyên Nghĩa |
|
22 |
+
| 20120089 | Lê Xuân Hoàng |
|
23 |
+
| 20120422 | Nguyễn Thị Ánh Tuyết |
|
24 |
+
| 20120460 | Lê Nguyễn Hải Dương |
|
25 |
+
| 20120494 | Lê Xuân Huy |
|
26 |
+
"""
|
27 |
+
)
|
28 |
+
|
29 |
+
st.header("The Need for Sentiment Analysis")
|
30 |
+
st.markdown(
|
31 |
+
"""
|
32 |
+
Sentiment analysis algorithms are used to analyze sentiment in a comment or a review.
|
33 |
+
It is said that around 90% of consumers read online reviews before visiting a business or buying a product.
|
34 |
+
These reviews can be positive or negative or neutral, and it is important to know what the customers are saying about your business.
|
35 |
+
"""
|
36 |
+
)
|
37 |
+
|
38 |
+
st.header("Technology used")
|
39 |
+
st.markdown(
|
40 |
+
"""
|
41 |
+
In this demo, we used BERT as the model for sentiment analysis. BERT is a transformer-based model that was proposed in 2018 by Google.
|
42 |
+
It is a pre-trained model that can be used for various NLP tasks such as sentiment analysis, question answering, etc.
|
43 |
+
"""
|
44 |
+
)
|
45 |
+
|
46 |
+
|