Skip to content

Dockerfile

This directory contains a convenient Dockerfile to build and run sentencepiece C++ command line tools in a container. IMPORTANT: this Dockerfile is community-maintained on a best effort basis only. The sentencepiece core team does not take responsibility for ongoing maintenance, security fixes, or guarantees of uptime/compatibility. Use at your own risk.

Quickstart

Build locally (under the repository root directory):

docker build -t sentencepiece -f contrib/docker/Dockerfile .

Run the command line tools:

docker run --rm sentencepiece spm_encode --help