achmaddhani commited on
Commit
32d4be4
·
1 Parent(s): eafd889

Update eda.py

Browse files
Files changed (1) hide show
  1. eda.py +40 -1
eda.py CHANGED
@@ -74,4 +74,43 @@ def run():
74
  - This gives insight about how expressive the people are in the dataset. Most people quite concise but there are a few who's very expressive and open about what they feel.
75
  '''
76
  )
77
- # ============================= Word Cloud ==================================
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  - This gives insight about how expressive the people are in the dataset. Most people quite concise but there are a few who's very expressive and open about what they feel.
75
  '''
76
  )
77
+ # ============================= Joy Word Cloud ==================================
78
+ st.subheader('Joy Word Cloud')
79
+ image1 = Image.open('joy_wordcloud.png')
80
+ st.image(image1, caption='Figure 1 Joy Emotion Word Cloud', width=700)
81
+
82
+ # explaination
83
+ with st.expander('Explanation'):
84
+ st.caption(
85
+ '''
86
+ The Joy wordcloud highlights commonly used words associated with feelings of joy, such as `life, good, day, something, going, and well`, indicating that these terms are often expressed when people describe joyful experiences.
87
+ '''
88
+ )
89
+
90
+ # ============================= Anger Word Cloud =====================================
91
+
92
+ st.subheader('Anger Word Cloud')
93
+ image2 = Image.open('anger_wordcloud.png')
94
+ st.image(image2, caption='Figure 2 Anger Emotion Word Cloud', width=700)
95
+
96
+ # explaination
97
+ with st.expander('Explanation'):
98
+ st.caption(
99
+ '''
100
+ The Anger wordcloud highlights commonly used words associated with feelings of anger, such as would, even, way, think, angry, indicating that these terms mostly expressed when people are angry. Anger is a special case where, words like would and even is an auxiliary verb, which indicates a mood or tense.
101
+ '''
102
+ )
103
+
104
+ # =============================== Fear Word Cloud ====================================
105
+
106
+ st.subheader('Fear Word Cloud')
107
+ image3 = Image.open('fear_wordcloud.png')
108
+ st.image(image3, caption='Figure 3 Fear Emotion Word Cloud', width=700)
109
+
110
+ # explaination
111
+ with st.expander('Explanation'):
112
+ st.caption(
113
+ '''
114
+ The Fear wordcloud highlights commonly used words associated with feelings of fear, such as `still, bit, strange, think`, indicating that these terms are often expressed when people describing or more accurately worriness and anxiousness. This is justified since fear in the context of fear of the unknown is believe to cause worriness and anxiousness on a person. Fear is a broad emotion that can be more interpreted two ways, fear of the unknown that cause anxiety or being scared/teriffied and giving goosebumps.
115
+ '''
116
+ )