Skip to content

Commit c01e65b

Browse files
updating the data collator for seq-regression to handle the dim mismatch problem (#751)
1 parent 860cbc2 commit c01e65b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flaml/nlp/huggingface/data_collator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
MULTICHOICECLASSIFICATION,
1212
SUMMARIZATION,
1313
SEQCLASSIFICATION,
14+
SEQREGRESSION
1415
)
1516

1617

@@ -51,5 +52,6 @@ def __call__(self, features):
5152
(MULTICHOICECLASSIFICATION, DataCollatorForMultipleChoiceClassification),
5253
(SUMMARIZATION, DataCollatorForSeq2Seq),
5354
(SEQCLASSIFICATION, DataCollatorWithPadding),
55+
(SEQREGRESSION, DataCollatorWithPadding),
5456
]
5557
)

0 commit comments

Comments
 (0)