Emanuela Boros commited on
Commit
34d59ab
·
1 Parent(s): 1ea9d7f

added confidence

Browse files
Files changed (1) hide show
  1. generic_nel.py +1 -1
generic_nel.py CHANGED
@@ -155,7 +155,7 @@ class NelPipeline(Pipeline):
155
  # percentages = [(prob * 100.0).tolist() for prob in all_probabilities]
156
 
157
  # Return the predictions along with the extracted entity, lOffset, and rOffset
158
- return wikipedia_predictions, enclosed_entity, lOffset, rOffset, percentages
159
 
160
  def _forward(self, inputs):
161
  return inputs
 
155
  # percentages = [(prob * 100.0).tolist() for prob in all_probabilities]
156
 
157
  # Return the predictions along with the extracted entity, lOffset, and rOffset
158
+ return wikipedia_predictions, enclosed_entity, lOffset, rOffset, [percentages]
159
 
160
  def _forward(self, inputs):
161
  return inputs