Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Transformers are great, but often times, you want to finetune them for your down

```python
from refinery.adapter import transformers
dataset, mapping = transformers.build_dataset(client, "headline", "__clickbait")
dataset, mapping, index = transformers.build_classification_dataset(client, "headline", "__clickbait")
```

From here, you can follow the [finetuning example](https://huggingface.co/docs/transformers/training) provided in the official Hugging Face documentation. A next step could look as follows:
Expand Down
2 changes: 1 addition & 1 deletion refinery/adapter/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def build_classification_dataset(
client: Client,
sentence_input: str,
classification_label: str,
num_train: Optional[int] = 100,
num_train: Optional[int] = None,
):
"""Build a classification dataset from a refinery client and a config string useable for HuggingFace finetuning.

Expand Down