Skip to content

Commit f0f4dcf

Browse files
authored
dont use .convert_dataset in predict script (#214)
1 parent ba7dbf8 commit f0f4dcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/predict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def predict(cfg: DictConfig) -> Tuple[dict, dict]:
9494
)
9595

9696
# auto-convert the dataset if the taskmodule specifies a document type
97-
dataset = pipeline.taskmodule.convert_dataset(dataset)
97+
dataset = dataset.to_document_type(pipeline.taskmodule, downcast=False)
9898

9999
# Init the serializer
100100
serializer: Optional[DocumentSerializer] = None

0 commit comments

Comments
 (0)