nehalelkaref
commited on
Commit
•
186dc98
1
Parent(s):
f9eff7d
Update app.py
Browse files
app.py
CHANGED
@@ -17,9 +17,8 @@ def predict_label(text):
|
|
17 |
|
18 |
ensemble_span_scores = [score for scores in [span_scores, msa_span_scores] for score in scores]
|
19 |
ensemble_pooled_scores = pool_span_scores(ensemble_span_scores, ip_len)
|
20 |
-
|
21 |
-
|
22 |
-
ent_scores = extract_ent_scores(entity_model,ip,ensemble_pred_tags, pos_col=1, task_col=2)
|
23 |
combined_sequences, ent_pred_tags = pool_ent_scores(ent_scores, ip_len)
|
24 |
|
25 |
return combined_sequences
|
|
|
17 |
|
18 |
ensemble_span_scores = [score for scores in [span_scores, msa_span_scores] for score in scores]
|
19 |
ensemble_pooled_scores = pool_span_scores(ensemble_span_scores, ip_len)
|
20 |
+
|
21 |
+
ent_scores = extract_ent_scores(entity_model,ip,ensemble_pooled_scores, pos_col=1, task_col=2)
|
|
|
22 |
combined_sequences, ent_pred_tags = pool_ent_scores(ent_scores, ip_len)
|
23 |
|
24 |
return combined_sequences
|