Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,7 +90,7 @@ df_inf1['message'] = df_inf1['message'].apply(lambda j: check_chatwords(j))
|
|
| 90 |
df_inf1['message'] = df_inf1['message'].apply(lambda k: lower(k))
|
| 91 |
df_inf1['message'] = df_inf1['message'].apply(lambda v: check_abbr(v))
|
| 92 |
df_inf1['message'] = df_inf1['message'].apply(lambda r: check_punctuation(r))
|
| 93 |
-
df_inf1['message'] = df_inf1['message'].apply(lambda
|
| 94 |
|
| 95 |
y_pred_inf = final_gru.predict(df_inf1['message'])
|
| 96 |
y_pred_inf = np.where(y_pred_inf >= 0.5, 1, 0)
|
|
|
|
| 90 |
df_inf1['message'] = df_inf1['message'].apply(lambda k: lower(k))
|
| 91 |
df_inf1['message'] = df_inf1['message'].apply(lambda v: check_abbr(v))
|
| 92 |
df_inf1['message'] = df_inf1['message'].apply(lambda r: check_punctuation(r))
|
| 93 |
+
df_inf1['message'] = df_inf1['message'].apply(lambda m: token_stopwords_lemma(m))
|
| 94 |
|
| 95 |
y_pred_inf = final_gru.predict(df_inf1['message'])
|
| 96 |
y_pred_inf = np.where(y_pred_inf >= 0.5, 1, 0)
|