Skip to content
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

feat: improves chinese and japanese tokenizers #899

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

micheleriva
Copy link
Member

This pull request includes significant changes to the packages/tokenizers module, primarily focusing on migrating from a custom build system using Rust and WebAssembly to a TypeScript-based build system. The changes also include updates to the configuration files, package scripts, and test files to accommodate this migration.

Migration to TypeScript-based build system:

Package configuration updates:

  • packages/tokenizers/package.json: Updated the exports field to reflect new paths for ES and CommonJS modules, added a tshy section for build configuration, and updated scripts to use tshy for building and tsx for testing. [1] [2] [3]

Removal of Rust and WebAssembly build system:

  • packages/tokenizers/scripts/build.mjs: Removed the script for building tokenizers using Rust and WebAssembly.
  • packages/tokenizers/src/tokenizer-japanese/.gitignore, packages/tokenizers/src/tokenizer-mandarin/.gitignore: Removed entries related to Rust build artifacts. [1] [2]
  • packages/tokenizers/src/tokenizer-japanese/Cargo.toml, packages/tokenizers/src/tokenizer-mandarin/Cargo.toml: Removed Rust project configuration files. [1] [2]
  • packages/tokenizers/src/tokenizer-japanese/src/lib.rs, packages/tokenizers/src/tokenizer-mandarin/src/lib.rs: Removed Rust source files for tokenizers. [1] [2]
  • packages/tokenizers/src/tokenizer-japanese/src/tokenizer.ts, packages/tokenizers/src/tokenizer-mandarin/src/tokenizer.ts: Removed TypeScript wrappers for Rust-based tokenizers. [1] [2]

Addition of new TypeScript tokenizers:

Test updates:

Copy link

vercel bot commented Feb 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
orama-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 27, 2025 3:49pm

@micheleriva micheleriva merged commit 8fdd4bb into main Feb 27, 2025
3 checks passed
@micheleriva micheleriva deleted the feat/light-tokenizers branch February 27, 2025 15:50
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.

1 participant