Emanuela Boros commited on
Commit
6804cf7
·
1 Parent(s): 9c150dd

added confidence

Browse files
Files changed (1) hide show
  1. generic_nel.py +3 -1
generic_nel.py CHANGED
@@ -117,7 +117,9 @@ class NelPipeline(Pipeline):
117
  # print(outputs)
118
  token_ids, scores = outputs.sequences, outputs.scores
119
 
120
- print(scores.shape, len(scores))
 
 
121
  # Process scores and normalize
122
  scores_tensor = scores.clone().detach()
123
  probabilities = torch.exp(scores_tensor)
 
117
  # print(outputs)
118
  token_ids, scores = outputs.sequences, outputs.scores
119
 
120
+ print(len(scores))
121
+ for score in scores:
122
+ print(score.shape)
123
  # Process scores and normalize
124
  scores_tensor = scores.clone().detach()
125
  probabilities = torch.exp(scores_tensor)