Varun Wadhwa commited on
Commit
19a3733
·
unverified ·
1 Parent(s): 693fb61
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -99,7 +99,11 @@ def tokenize_function(examples):
99
  max_length=512)
100
  for _, labels in enumerate(examples['mbert_token_classes']):
101
  new_labels.append(align_labels_with_tokens(labels))
102
-
 
 
 
 
103
  inputs["labels"] = new_labels
104
  return inputs
105
 
 
99
  max_length=512)
100
  for _, labels in enumerate(examples['mbert_token_classes']):
101
  new_labels.append(align_labels_with_tokens(labels))
102
+ print("Printing input with tokenized output")
103
+ print(inputs)
104
+ print(inputs.tokens())
105
+ print(inputs.word_ids())
106
+ print(new_labels)
107
  inputs["labels"] = new_labels
108
  return inputs
109