Skip to end of banner
Go to start of banner

Build sentencepiece library and python package

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

https://github.com/google/sentencepiece

https://pypi.org/project/sentencepiece/

Steps to build sentencepiece library and python package is given below.

git clone https://github.com/google/sentencepiece.git

cd sentencepiece

mkdir build

cd build

set CURRENT_PATH=%~dp0

set LIBRARY_PATH=%CURRENT_PATH%build\root

cmake .. -A ARM64 -DSPM_BUILD_TEST=ON -DSPM_ENABLE_SHARED=OFF -DCMAKE_INSTALL_PREFIX=%LIBRARY_PATH%

cmake --build . --config Release --target install

cd ../python

python setup.py bdist_wheel

  • No labels