textproc/py-sentencepiece 0.2.1_1 MidnightBSD
Unsupervised text tokenizer for Neural Network-based text generation
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- Apache-2.0
- Categories
- textproc
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 |
|---|---|---|
| MidnightBSD | textproc/py-sentencepiece | 0.2.1_1 |
| FreeBSD | textproc/py-sentencepiece | 0.2.2 |
| NetBSD | textproc/py-sentencepiece | 0.2.1 |
| HardenedBSD | textproc/py-sentencepiece | 0.2.2 |
| GhostBSD | textproc/py-sentencepiece | 0.2.2 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}sentencepiece
From mports:
cd /usr/mports/textproc/py-sentencepiece && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sentencepiece>0:textproc/py-sentencepiece
Dependencies
As this port's Makefile names them.
Build 1
protobuf>0: devel/protobuf
Library 1
libsentencepiece.so: textproc/sentencepiece
Build dependencies 2
Run dependencies 1
Required by 2
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.1_GH0.tar.gz | 1.3485527e+07 | c1a59e9259c9653ad0ade653dadff074cd31f0a6ff2a11316f67bee4189a8f1b |