mirror of
https://github.com/microsoft/autogen.git
synced 2025-10-29 08:49:48 +00:00
updating the data collator for seq-regression to handle the dim mismatch problem (#751)
This commit is contained in:
parent
860cbc233e
commit
c01e65bb48
@ -11,6 +11,7 @@ from flaml.data import (
|
||||
MULTICHOICECLASSIFICATION,
|
||||
SUMMARIZATION,
|
||||
SEQCLASSIFICATION,
|
||||
SEQREGRESSION
|
||||
)
|
||||
|
||||
|
||||
@ -51,5 +52,6 @@ task_to_datacollator_class = OrderedDict(
|
||||
(MULTICHOICECLASSIFICATION, DataCollatorForMultipleChoiceClassification),
|
||||
(SUMMARIZATION, DataCollatorForSeq2Seq),
|
||||
(SEQCLASSIFICATION, DataCollatorWithPadding),
|
||||
(SEQREGRESSION, DataCollatorWithPadding),
|
||||
]
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user