Skip to content

feat: improves chinese and japanese tokenizers#899

Merged
micheleriva merged 1 commit intomainfrom
feat/light-tokenizers
Feb 27, 2025
Merged

feat: improves chinese and japanese tokenizers#899
micheleriva merged 1 commit intomainfrom
feat/light-tokenizers

Conversation

@micheleriva
Copy link
Copy Markdown
Contributor

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:

@vercel
Copy link
Copy Markdown

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