Spaces:
Runtime error
Runtime error
Gagan Bhatia
commited on
Commit
•
55f1dff
1
Parent(s):
6a7186e
Update model.py
Browse files- src/models/model.py +4 -0
src/models/model.py
CHANGED
@@ -75,3 +75,7 @@ class DataModule(Dataset):
|
|
75 |
] = -100
|
76 |
|
77 |
return dict(
|
|
|
|
|
|
|
|
|
|
75 |
] = -100
|
76 |
|
77 |
return dict(
|
78 |
+
keywords=data_row["keywords"],
|
79 |
+
text=data_row["text"],
|
80 |
+
keywords_input_ids=input_encoding["input_ids"].flatten(),
|
81 |
+
keywords_attention_mask=input_encoding["attention_mask"].flatten(),
|