Skip to content

fix set_transform link docs#26856

Merged
ArthurZucker merged 3 commits intohuggingface:mainfrom
diegulio:fix-set-transform-link
Oct 20, 2023
Merged

fix set_transform link docs#26856
ArthurZucker merged 3 commits intohuggingface:mainfrom
diegulio:fix-set-transform-link

Conversation

@diegulio
Copy link
Contributor

What does this PR do?

This PR simply fix a link to set_transform documentation.

Fixes # (issue)

Broken link to set_transform docs

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?

Who can review?

@stevhliu @MKhalusova

Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks but let's link to the up to date function!

</Tip>

3. Then use 🤗 Datasets [`set_transform`](https://huggingface.co/docs/datasets/process.html#format-transform) to apply the transforms on the fly:
3. Then use 🤗 Datasets [`set_transform`](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset.set_transform) to apply the transforms on the fly:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets make it even simpler by using the doc-builders syntax for referencing functions from other libraries :)

Suggested change
3. Then use 🤗 Datasets [`set_transform`](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset.set_transform) to apply the transforms on the fly:
3. Then use 🤗 Datasets [`~datasets.Dataset.set_transform`] to apply the transforms on the fly:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! @stevhliu

diegulio and others added 2 commits October 17, 2023 14:07
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
@diegulio diegulio requested a review from ArthurZucker October 19, 2023 20:11
Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice thanks for the update

@ArthurZucker ArthurZucker merged commit 9b19766 into huggingface:main Oct 20, 2023
EduardoPach pushed a commit to EduardoPach/transformers that referenced this pull request Nov 19, 2023
* fix set_transform link

* Update docs/source/en/preprocessing.md

Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>

* use doc-builder sintax

---------

Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants