Skip to content

Minor changes in the README and the HF adapter. #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
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