BSD Ports

textproc/sentencepiece 0.2.1 MidnightBSD

Unsupervised text tokenizer for Neural Network-based text generation

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Port added
Last update
Commit
8af06753b2
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

The newest version among them is 0.2.2, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDtextproc/sentencepiece0.2.1 behind since 2026-07-13no data-[email protected]2026-07-05
FreeBSDtextproc/sentencepiece0.2.2 newestnone known-[email protected]2026-07-13
NetBSDtextproc/sentencepiece0.2.1 behind since 2026-07-13none known---
DragonFlytextproc/sentencepiece0.2.0_1 behind since 2026-07-05none known-[email protected]-
HardenedBSDtextproc/sentencepiece0.2.2 newestno data-[email protected]-
GhostBSDtextproc/sentencepiece0.2.2 newestno data-[email protected]-

Compare across BSDs

Version history 1

  1. 0.2.1 8af06753b2

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

mport install sentencepiece

From mports:

cd /usr/mports/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

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Configuration

Options name: textproc_sentencepiece

OptionDefaultDescription
GPERFTOOLSoff
USES
cmake:testing compiler:c++17-lang
Service scripts
none

Files

pkg-plist 16
  • bin/spm_decode
  • bin/spm_encode
  • bin/spm_export_vocab
  • bin/spm_normalize
  • bin/spm_train
  • 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
FileSizeSHA256
google-sentencepiece-v0.2.1_GH0.tar.gz1.3485527e+07c1a59e9259c9653ad0ade653dadff074cd31f0a6ff2a11316f67bee4189a8f1b

Commit history 1

DateCommitCreditsLog message
8af06753b2 Lucas Holt databases/rubygem-flipper-active_record-rails70: update to 1.3.6
Match the flipper-gitlab provider series so fake-qa can satisfy the gemspec flipper dependency. AI-Assisted-by: OpenAI Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>