textproc/py-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
- 518.6 KiB, 1694.5 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/py-sentencepiece | 0.2.2 |
| NetBSD | textproc/py-sentencepiece | 0.2.1 |
| MidnightBSD | textproc/py-sentencepiece | 0.2.1_1 |
Install
Binary package:
pkg install py312-sentencepiece
From the ports tree:
cd /usr/ports/textproc/py-sentencepiece/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-sentencepiece>0:textproc/py-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.
Build 2
${PYTHON_PKGNAMEPREFIX}pybind11>=0: devel/py-pybind11protobuf>0: devel/protobuf
Library 1
libsentencepiece.so: textproc/sentencepiece
The full lists below include those, and their dependencies in turn.
Build dependencies 17
Run dependencies 11
Required by 48
- 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
- www/py-google-cloud-aiplatform
Configuration
No options to configure.
- USES
- compiler:c++17-lang pkgconfig python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| google-sentencepiece-v0.2.2_GH0.tar.gz | 1.4160863e+07 | 92381f713e094a15a1ccff1ac4a5315a4c4b82a99ac1332d6ac53c9dc8e1bcf1 |