Commit
·
7307017
1
Parent(s):
31d2328
Update app.py
Browse files
app.py
CHANGED
@@ -271,7 +271,7 @@ if st.button("Analysis") and input_option == "Teks Manual" and user_input:
|
|
271 |
norm_slang_text = normalize_slang(cleaned_text, lookp_dict)
|
272 |
tanpa_stopwords = remove_stopwords(norm_slang_text, stop_words)
|
273 |
|
274 |
-
|
275 |
'Text': text,
|
276 |
'cleaned-text' : cleaned_text,
|
277 |
'normalisasi-text' : norm_slang_text,
|
@@ -290,7 +290,7 @@ elif input_option == "Unggah Berkas XLSX" and uploaded_file is not None:
|
|
290 |
norm_slang_text = normalize_slang(cleaned_text, lookp_dict)
|
291 |
if dates in df.columns :
|
292 |
for date in dates :
|
293 |
-
|
294 |
'Date' : date,
|
295 |
'Text': text,
|
296 |
'cleaned-text' : cleaned_text,
|
@@ -300,7 +300,7 @@ elif input_option == "Unggah Berkas XLSX" and uploaded_file is not None:
|
|
300 |
'emotikon' : emoticon,
|
301 |
})
|
302 |
else :
|
303 |
-
|
304 |
'Text': text,
|
305 |
'cleaned-text' : cleaned_text,
|
306 |
'normalisasi-text' : norm_slang_text,
|
|
|
271 |
norm_slang_text = normalize_slang(cleaned_text, lookp_dict)
|
272 |
tanpa_stopwords = remove_stopwords(norm_slang_text, stop_words)
|
273 |
|
274 |
+
results.append({
|
275 |
'Text': text,
|
276 |
'cleaned-text' : cleaned_text,
|
277 |
'normalisasi-text' : norm_slang_text,
|
|
|
290 |
norm_slang_text = normalize_slang(cleaned_text, lookp_dict)
|
291 |
if dates in df.columns :
|
292 |
for date in dates :
|
293 |
+
results.append({
|
294 |
'Date' : date,
|
295 |
'Text': text,
|
296 |
'cleaned-text' : cleaned_text,
|
|
|
300 |
'emotikon' : emoticon,
|
301 |
})
|
302 |
else :
|
303 |
+
results.append({
|
304 |
'Text': text,
|
305 |
'cleaned-text' : cleaned_text,
|
306 |
'normalisasi-text' : norm_slang_text,
|