No project description provided
Project description
VintageVectors: Unicode Point Tokenization
VintageVectors takes a straightforward, yet unconventional approach to tokenization by representing words as sequences of unicode code points. In this method, words are treated as channels/steps (row wise), with each word encoded as a sequence of unicode code points in the feature (column wise) dimension.
Potential Benefits
The simplicity of this approach could offer benefits in terms of:
-
Memory Efficiency: By leveraging the channel dimension to store words and the feature dimension to represent the word itself, VintageVectors may provide a memory-friendly solution compared to traditional tokenization methods.
-
Preservation of Word Structure: Encoding words as sequences of characters preserves the internal structure, which could be advantageous for tasks requiring character-level understanding. Utilizes the benefits from character based tokenization schemes, while keeping a lower number of tokens than popular methods like Byte Pair Encoding (BPE).
-
Handle any language out of the box: (in theory) Using code points allows us to model any character within unicode. Current processing is compatible with latin based languages
Inspiration
This vintage, back-to-basics method draws inspiration from two sources:
-
Audio and DSP: Coming from a background in hip hop production and working with raw audio data, representing words as sequences of unicode points feels akin to working with raw samples - the building blocks of rich compositions.
-
CANINE: The CANINE paper, which tokenizes text at the unicode point level, served as a direct inspiration for this character-level tokenization scheme.
TODO
- Make this repo a pip package
- Upload text models trained with this tokenization
- Upload audio models when done training
No claims are made about its effectiveness or superiority. VintageVectors is an exploration of a simple, character-level approach to tokenization, drawing parallels from the worlds of audio and existing methods, while revisiting the foundations of text representations.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vintage_vectors-1.1.tar.gz.
File metadata
- Download URL: vintage_vectors-1.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9430ef7b89c7bd80064674f045ad1783581cd321cc6c2ac0beab6f0b45d5fe4
|
|
| MD5 |
55279434e8af9870094206fde8eb35b5
|
|
| BLAKE2b-256 |
307be863f0219aeb60b3301e19e948dfc6bcdb98e9d2cc69b9249f814c5f4aa4
|
File details
Details for the file vintage_vectors-1.1-py3-none-any.whl.
File metadata
- Download URL: vintage_vectors-1.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fb6fad5f0e36734f828816308ae9c4bfb79c9a432aaae19ac1e95d8878d1f68
|
|
| MD5 |
082aa6a94dddebd467379f7c9946c401
|
|
| BLAKE2b-256 |
9a6ec59aa56967ff5bda7411277c562a45e2e83584a5fe19fa0d89407d04991e
|