Gagan Bhatia commited on
Commit
53082d2
·
1 Parent(s): 22ddb9e

Update model.py

Browse files
Files changed (1) hide show
  1. src/models/model.py +1 -0
src/models/model.py CHANGED
@@ -79,6 +79,7 @@ class DataModule(Dataset):
79
  text=data_row["text"],
80
  keywords_input_ids=input_encoding["input_ids"].flatten(),
81
  keywords_attention_mask=input_encoding["attention_mask"].flatten(),
 
82
  labels_attention_mask=output_encoding["attention_mask"].flatten(),
83
  )
84
 
 
79
  text=data_row["text"],
80
  keywords_input_ids=input_encoding["input_ids"].flatten(),
81
  keywords_attention_mask=input_encoding["attention_mask"].flatten(),
82
+ labels=labels.flatten(),
83
  labels_attention_mask=output_encoding["attention_mask"].flatten(),
84
  )
85