Update generic_nel.py
Browse files- generic_nel.py +1 -1
generic_nel.py
CHANGED
@@ -151,7 +151,7 @@ class NelPipeline(Pipeline):
|
|
151 |
sequence_confidence = torch.exp(log_prob_sum)
|
152 |
percentage = sequence_confidence.cpu().numpy() * 100.0
|
153 |
|
154 |
-
print(wikipedia_prediction, enclosed_entity, lOffset, rOffset, percentage)
|
155 |
|
156 |
# Return the predictions along with the extracted entity, lOffset, and rOffset
|
157 |
return wikipedia_prediction, enclosed_entity, lOffset, rOffset, percentage
|
|
|
151 |
sequence_confidence = torch.exp(log_prob_sum)
|
152 |
percentage = sequence_confidence.cpu().numpy() * 100.0
|
153 |
|
154 |
+
# print(wikipedia_prediction, enclosed_entity, lOffset, rOffset, percentage)
|
155 |
|
156 |
# Return the predictions along with the extracted entity, lOffset, and rOffset
|
157 |
return wikipedia_prediction, enclosed_entity, lOffset, rOffset, percentage
|