Update generic_ner.py
Browse files- generic_ner.py +1 -0
generic_ner.py
CHANGED
|
@@ -225,6 +225,7 @@ class MultitaskTokenClassificationPipeline(Pipeline):
|
|
| 225 |
all_logits = {}
|
| 226 |
|
| 227 |
for i in range(len(text_sentences)):
|
|
|
|
| 228 |
input_ids = torch.tensor([inputs["input_ids"][i]], dtype=torch.long).to(
|
| 229 |
self.model.device
|
| 230 |
)
|
|
|
|
| 225 |
all_logits = {}
|
| 226 |
|
| 227 |
for i in range(len(text_sentences)):
|
| 228 |
+
print(inputs["input_ids"][i].shape)
|
| 229 |
input_ids = torch.tensor([inputs["input_ids"][i]], dtype=torch.long).to(
|
| 230 |
self.model.device
|
| 231 |
)
|