Spaces:
Sleeping
Sleeping
seriouspark
commited on
Commit
•
ddd00e7
1
Parent(s):
e111bb0
Update app.py
Browse files
app.py
CHANGED
@@ -205,7 +205,7 @@ def all_process(origin_essay):
|
|
205 |
cls_model = AutoModelForSequenceClassification.from_pretrained('seriouspark/bert-base-multilingual-cased-finetuning-sentimental-6label')
|
206 |
#cls_model = AutoModelForSequenceClassification.from_pretrained('bert-base-multilingual-cased', num_labels = 6)
|
207 |
|
208 |
-
final_result, file_name_dt = get_word_emotion_pair(cls_model, essay_sent)
|
209 |
all_result, adj_result, noun_result, essay_summary, file_made_dt_str = get_essay_base_analysis(file_name_dt)
|
210 |
|
211 |
summary_result = pd.concat([adj_result, noun_result]).fillna(0).sort_values(by = 'total', ascending = False).fillna(0).reset_index()[:30]
|
|
|
205 |
cls_model = AutoModelForSequenceClassification.from_pretrained('seriouspark/bert-base-multilingual-cased-finetuning-sentimental-6label')
|
206 |
#cls_model = AutoModelForSequenceClassification.from_pretrained('bert-base-multilingual-cased', num_labels = 6)
|
207 |
|
208 |
+
final_result, file_name_dt = get_word_emotion_pair(cls_model, essay_sent, idx2emo)
|
209 |
all_result, adj_result, noun_result, essay_summary, file_made_dt_str = get_essay_base_analysis(file_name_dt)
|
210 |
|
211 |
summary_result = pd.concat([adj_result, noun_result]).fillna(0).sort_values(by = 'total', ascending = False).fillna(0).reset_index()[:30]
|