A command-line utility for encoding text using GPT Byte Pair Encoding algorithm.
- Efficiently encodes text.
- Simple command-line interface.
- Can process input from files, standard input, or direct text.
You can install the encoder using Rust's package manager, Cargo:
cargo install gptbpe
You can use the gptbpe
command to encode text.
You can also pipe input directly:
cat README.md | gptbpe >> test.txt
This will encode the contents of README.md
and append the result to test.txt
.
You can also pass text directly:
echo "Hello, world!" | gptbpe