Restructured in preparation for packaging
This commit is contained in:
parent
d6c0130477
commit
80a62a6e32
@ -57,7 +57,7 @@ class TokenClassificationTrainer:
|
||||
)
|
||||
|
||||
labels = []
|
||||
for i, label in enumerate(examples[f"ner_tags"]):
|
||||
for i, label in enumerate(examples["ner_tags"]):
|
||||
word_ids = tokenized_inputs.word_ids(
|
||||
batch_index=i
|
||||
) # Map tokens to their respective word.
|
Reference in New Issue
Block a user