Skip to content

Conversation

shoumikhin
Copy link
Contributor

Summary:

  • Add Phi4 test
  • Handle the invert flag properly
  • Skip regex lookahead since it's not supported by RE2
  • Catch std::exception instead of narrow json parser errors
  • Make the special tokens arg optional in ObjC/Swift API

Differential Revision: D83641294

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 1, 2025
@facebook-github-bot
Copy link
Contributor

@shoumikhin has exported this pull request. If you are a Meta employee, you can view the originating Diff in D83641294.

shoumikhin added a commit to shoumikhin/tokenizers that referenced this pull request Oct 2, 2025
Summary:
X-link: pytorch/executorch#14716


- Add Phi4 test
- Handle the invert flag properly
- Skip regex lookahead since it's not supported by RE2
- Catch std::exception instead of narrow json parser errors
- Make the special tokens arg optional in ObjC/Swift API

Reviewed By: metascroy

Differential Revision: D83641294
Copy link
Contributor

@larryliu0820 larryliu0820 left a comment

Choose a reason for hiding this comment

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

Thank you for adding the tests!

Summary:
X-link: pytorch/executorch#14716


- Add Phi4 test
- Handle the invert flag properly
- Skip regex lookahead since it's not supported by RE2
- Catch std::exception instead of narrow json parser errors
- Make the special tokens arg optional in ObjC/Swift API

Reviewed By: larryliu0820, metascroy

Differential Revision: D83641294
shoumikhin added a commit to shoumikhin/executorch that referenced this pull request Oct 3, 2025
Summary:

X-link: meta-pytorch/tokenizers#130

- Add Phi4 test
- Handle the invert flag properly
- Skip regex lookahead since it's not supported by RE2
- Catch std::exception instead of narrow json parser errors
- Make the special tokens arg optional in ObjC/Swift API

Reviewed By: larryliu0820, metascroy

Differential Revision: D83641294
@facebook-github-bot facebook-github-bot merged commit 847d49f into meta-pytorch:main Oct 3, 2025
5 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot. fb-exported meta-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants