Restructured in preparation for packaging

This commit is contained in:
Harrison Deng 2023-06-01 16:16:13 -05:00
parent d6c0130477
commit 80a62a6e32

View File

@ -57,7 +57,7 @@ class TokenClassificationTrainer:
) )
labels = [] labels = []
for i, label in enumerate(examples[f"ner_tags"]): for i, label in enumerate(examples["ner_tags"]):
word_ids = tokenized_inputs.word_ids( word_ids = tokenized_inputs.word_ids(
batch_index=i batch_index=i
) # Map tokens to their respective word. ) # Map tokens to their respective word.