You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
478 B
24 lines
478 B
#!/bin/sh
|
|
|
|
if [ ! -d deps ]
|
|
then
|
|
mkdir deps
|
|
fi
|
|
cd deps
|
|
if [ ! -f v0.1.97.tar.gz ]
|
|
then
|
|
curl -LO https://github.com/google/sentencepiece/archive/refs/tags/v0.1.97.tar.gz
|
|
fi
|
|
if [ ! -f libsentencepiece.a ]
|
|
then
|
|
tar xzvf v0.1.97.tar.gz
|
|
cd sentencepiece-0.1.97/ && rm -rf build && mkdir build && cd build
|
|
cmake --version
|
|
cmake ..
|
|
make sentencepiece-static -j $(nproc)
|
|
cd ../..
|
|
cp sentencepiece-0.1.97/build/src/libsentencepiece.a ./
|
|
fi
|
|
cd ..
|
|
make
|