BSD Ports

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

SystemPortVersion
MidnightBSDtextproc/py-sentencepiece0.2.1_1
FreeBSDtextproc/py-sentencepiece0.2.2
NetBSDtextproc/py-sentencepiece0.2.1
HardenedBSDtextproc/py-sentencepiece0.2.2
GhostBSDtextproc/py-sentencepiece0.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

Library 1

Build dependencies 2
Run dependencies 1

Configuration

No options to configure.

USES
compiler:c++17-lang pkgconfig python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
google-sentencepiece-v0.2.1_GH0.tar.gz1.3485527e+07c1a59e9259c9653ad0ade653dadff074cd31f0a6ff2a11316f67bee4189a8f1b