hanantonio commited on
Commit
972f9ce
·
verified ·
1 Parent(s): c5204e0

Upload 21 files

Browse files
Files changed (2) hide show
  1. src/requirements.txt +3 -3
  2. src/src/eda.py +13 -3
src/requirements.txt CHANGED
@@ -8,9 +8,9 @@ numpy
8
  wordcloud
9
  fastopic==1.0.1
10
  topmost==1.0.2
11
- # torchvision==0.21.0
12
- # gensim==4.3.3
13
- # torch===1.11.0
14
  joblib===1.2.0
15
  scikit-learn==1.6.1
16
  tensorflow==2.20.0
 
8
  wordcloud
9
  fastopic==1.0.1
10
  topmost==1.0.2
11
+ torch>=2.5.0
12
+ torchvision>=0.20.0
13
+ gensim==4.3.3
14
  joblib===1.2.0
15
  scikit-learn==1.6.1
16
  tensorflow==2.20.0
src/src/eda.py CHANGED
@@ -67,6 +67,14 @@ def run():
67
  fig = px.histogram(df, x='text_length', nbins=50, title='Review Length Distribution')
68
  st.plotly_chart(fig, use_container_width=True)
69
 
 
 
 
 
 
 
 
 
70
  # ===============================
71
  # Topic Modeling Results (Images)
72
  # ===============================
@@ -78,7 +86,7 @@ def run():
78
  st.image("./src/Negative - Top Words Distributions.png", caption="Negative - Top Words Distributions")
79
  with col2:
80
  st.image("./src/Positive - Top Words Distributions.png", caption="Positive - Top Words Distributions")
81
- st.write("Lorem ipsum explanation for Top Words Distributions.")
82
 
83
  # 2. Topic Activities Over Time
84
  col1, col2 = st.columns(2)
@@ -86,7 +94,7 @@ def run():
86
  st.image("./src/Negative - Topic Activities Over Time.png", caption="Negative - Topic Activities Over Time")
87
  with col2:
88
  st.image("./src/Positive - Topic Activities Over Time.png", caption="Positive - Topic Activities Over Time")
89
- st.write("Lorem ipsum explanation for Topic Activities Over Time.")
90
 
91
  # 3. Topics Hierarchy
92
  # col1, col2 = st.columns(2)
@@ -102,7 +110,9 @@ def run():
102
  st.image("./src/Negative - Topics Weights.png", caption="Negative - Topic Weights")
103
  with col2:
104
  st.image("./src/Positive - Topics Weights.png", caption="Positive - Topic Weights")
105
- st.write("Lorem ipsum explanation for Topics Weights.")
 
 
106
 
107
  # =============================================
108
  # Run Script
 
67
  fig = px.histogram(df, x='text_length', nbins=50, title='Review Length Distribution')
68
  st.plotly_chart(fig, use_container_width=True)
69
 
70
+ # Wordcloud
71
+ col1, col2 = st.columns(2)
72
+ with col1:
73
+ st.image("./src/Negative - Wordcloud.png", caption="Negative - Wordcloud")
74
+ with col2:
75
+ st.image("./src/Positive - Wordcloud.png", caption="Positive - Wordcloud")
76
+ st.write("Lorem ipsum explanation for Wordcloud.")
77
+
78
  # ===============================
79
  # Topic Modeling Results (Images)
80
  # ===============================
 
86
  st.image("./src/Negative - Top Words Distributions.png", caption="Negative - Top Words Distributions")
87
  with col2:
88
  st.image("./src/Positive - Top Words Distributions.png", caption="Positive - Top Words Distributions")
89
+ # st.write("Lorem ipsum explanation for Top Words Distributions.")
90
 
91
  # 2. Topic Activities Over Time
92
  col1, col2 = st.columns(2)
 
94
  st.image("./src/Negative - Topic Activities Over Time.png", caption="Negative - Topic Activities Over Time")
95
  with col2:
96
  st.image("./src/Positive - Topic Activities Over Time.png", caption="Positive - Topic Activities Over Time")
97
+ # st.write("Lorem ipsum explanation for Topic Activities Over Time.")
98
 
99
  # 3. Topics Hierarchy
100
  # col1, col2 = st.columns(2)
 
110
  st.image("./src/Negative - Topics Weights.png", caption="Negative - Topic Weights")
111
  with col2:
112
  st.image("./src/Positive - Topics Weights.png", caption="Positive - Topic Weights")
113
+ # st.write("Lorem ipsum explanation for Topics Weights.")
114
+
115
+
116
 
117
  # =============================================
118
  # Run Script