Emanuela Boros commited on
Commit
8cda137
1 Parent(s): 415d945

added confidence

Browse files
Files changed (1) hide show
  1. generic_nel.py +1 -1
generic_nel.py CHANGED
@@ -118,7 +118,7 @@ class NelPipeline(Pipeline):
118
  token_ids, scores = outputs.sequences, outputs.scores
119
  # Decode the predictions into readable text
120
  wikipedia_predictions = self.tokenizer.batch_decode(
121
- outputs, skip_special_tokens=True
122
  )
123
  print(len(outputs.sequences))
124
  print(outputs.sequences.shape)
 
118
  token_ids, scores = outputs.sequences, outputs.scores
119
  # Decode the predictions into readable text
120
  wikipedia_predictions = self.tokenizer.batch_decode(
121
+ outputs.sequences, skip_special_tokens=True
122
  )
123
  print(len(outputs.sequences))
124
  print(outputs.sequences.shape)