huggingface / setfit

Efficient few-shot learning with Sentence Transformers
https://hf.co/docs/setfit
Apache License 2.0
2.25k stars 223 forks source link

Allow partial column mappings #449

Closed tomaarsen closed 11 months ago

tomaarsen commented 11 months ago

Hello!

Pull Request overview

Details

No longer require {"sentence": "text", "label": "label"}, you can just do {"sentence": "text"}. The column mapping applier was already equipped with this power, but the validation not yet. It's as simple as recognizing that the dataset columns (minus the keys from the column_mapping) will still be in the dataset.

HuggingFaceDocBuilderDev commented 11 months ago

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.