Skip to content

[docs] Whitespace #1785

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 8 commits into
base: main
Choose a base branch
from
Open

[docs] Whitespace #1785

wants to merge 8 commits into from

Conversation

stevhliu
Copy link
Member

@stevhliu stevhliu commented May 27, 2025

Improves documentation for the Whitespace function (see huggingface/transformers#38180 for more details)

cc @itazap

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@stevhliu stevhliu requested a review from ArthurZucker May 27, 2025 23:14
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 🤗

@ArthurZucker
Copy link
Collaborator

You need to run python stub.py !

@itazap
Copy link

itazap commented May 28, 2025

Awesome! 💯

@stevhliu
Copy link
Member Author

Hmm, having a bit of trouble here? 😅

  • I had to make some changes because running python stub.py gives the error python: can't open file '/Users/stevhliu/tokenizers/stub.py': [Errno 2] No such file or directory.
  • Instead, I run the command python bindings/python/stub.py and it creates a new py_src/tokenizers/ directory (with a bunch of empty files) instead of writing the changes to the existing one.
  • So I modify stub.py to write the changes to "bindings/python/py_src/tokenizers/" but then it just overwrites and replaces everything in those files with a blank line which doesn't seem right.

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.

4 participants