textproc/sentencepiece 0.2.2 FreeBSD
Unsupervised text tokenizer for Neural Network-based text generation
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
f3f511d80d- License
- APACHE20
- Categories
- textproc
- Package size
- 898.1 KiB, 6103.3 KiB installed
Description
SentencePiece is an unsupervised text tokenizer and detokenizer mainly for Neural Network-based text generation systems where the vocabulary size is predetermined prior to the neural model training. SentencePiece implements subword units (e.g., byte-pair-encoding (BPE)) and unigram language model with the extension of direct training from raw sentences. SentencePiece allows us to make a purely end-to-end system that does not depend on language-specific pre/postprocessing.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | textproc/sentencepiece | 0.2.2 |
| NetBSD | textproc/sentencepiece | 0.2.1 |
| DragonFly | textproc/sentencepiece | 0.2.0_1 |
| MidnightBSD | textproc/sentencepiece | 0.2.1 |
| HardenedBSD | textproc/sentencepiece | 0.2.2 |
| GhostBSD | textproc/sentencepiece | 0.2.2 |
Install
Binary package:
pkg install sentencepiece
From the ports tree:
cd /usr/ports/textproc/sentencepiece/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= sentencepiece>0:textproc/sentencepiece
LIB_DEPENDS= libsentencepiece.so:textproc/sentencepiece
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.2.2 | 0.2.2 | - | 0.2.0_1 | 0.2.2 |
| FreeBSD:14:quarterly | 0.2.2 | 0.2.2 | n/a | 0.2.0_1 | 0.2.2 |
| FreeBSD:15:latest | 0.2.2 | 0.2.2 | n/a | 0.2.0_1 | 0.2.0_1 |
| FreeBSD:15:quarterly | 0.2.2 | 0.2.2 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.2.2 | 0.2.2 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Library 2
libabsl_strings.so: devel/abseillibprotobuf-lite.so: devel/protobuf
The full lists below include those, and their dependencies in turn.
Build dependencies 17
Run dependencies 3
Required by 49
- deskutils/py-qmd
- graphics/py-olmocr
- misc/colibri
- misc/comfyui
- misc/openclaw
- misc/py-compressed-tensors
- misc/py-gguf
- misc/py-google-genai
- misc/py-kokoro
- misc/py-langchain-google-genai
- misc/py-llama-index-embeddings-huggingface
- misc/py-mistral-common
- misc/py-optimum
- misc/py-peft
- misc/py-sentence-transformers
- misc/py-transformers
- misc/py-vllm
- misc/py-xgrammar
- textproc/nano-pdf
- textproc/py-docling
- textproc/py-docling-agent
- textproc/py-docling-analysis-framework
- textproc/py-docling-core
- textproc/py-docling-cvat-tools
- textproc/py-docling-demo
- textproc/py-docling-enhanced
- textproc/py-docling-enhanced-onnx
- textproc/py-docling-eval
- textproc/py-docling-glm-ocr
- textproc/py-docling-google-ocr
- textproc/py-docling-graph
- textproc/py-docling-haystack
- textproc/py-docling-hierarchical-pdf
- textproc/py-docling-ibm-models
- textproc/py-docling-jobkit
- textproc/py-docling-langchain
- textproc/py-docling-litellm-picture-description
- textproc/py-docling-mcp
- textproc/py-docling-ocr
- textproc/py-docling-ocr-mistral
- textproc/py-docling-ocr-onnxtr
- textproc/py-docling-parse
- textproc/py-docling-sdg
- textproc/py-docling-serve
- textproc/py-docling-slim
- textproc/py-extended-docling
- textproc/py-langchain-docling
- textproc/py-sentencepiece
- www/py-google-cloud-aiplatform
Configuration
Options name: textproc_sentencepiece
| Option | Default | Description |
|---|---|---|
| GPERFTOOLS | off | Google gperftools support |
- USES
- cmake:testing compiler:c++17-lang
- Service scripts
- none
Files
pkg-plist 17
- bin/spm_decode
- bin/spm_encode
- bin/spm_export_vocab
- bin/spm_normalize
- bin/spm_train
- include/sentencepiece.pb.h
- include/sentencepiece_processor.h
- include/sentencepiece_trainer.h
- lib/libsentencepiece.a
- lib/libsentencepiece.so
- lib/libsentencepiece.so.0
- lib/libsentencepiece.so.0.0.0
- lib/libsentencepiece_train.a
- lib/libsentencepiece_train.so
- lib/libsentencepiece_train.so.0
- lib/libsentencepiece_train.so.0.0.0
- libdata/pkgconfig/sentencepiece.pc
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| google-sentencepiece-v0.2.2_GH0.tar.gz | 1.4160863e+07 | 92381f713e094a15a1ccff1ac4a5315a4c4b82a99ac1332d6ac53c9dc8e1bcf1 |