nehalelkaref commited on
Commit
186dc98
1 Parent(s): f9eff7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- ensemble_pred_tags = [entities_from_token_classes(sent_targs) for sent_targs in ensemble_pooled_scores]
21
- print('ensemble_pred_tags: ', ensemble_pred_tags)
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