parent
96dc6a0c68
commit
67b1c842d9
@ -0,0 +1,21 @@
|
|||||||
|
#!/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 ..
|
||||||
|
make sentencepiece-static -j $(nproc)
|
||||||
|
cd ../..
|
||||||
|
cp sentencepiece-0.1.97/build/src/libsentencepiece.a ./
|
||||||
|
fi
|
||||||
|
cd ..
|
||||||
|
make
|
@ -1,12 +0,0 @@
|
|||||||
#https://github.com/google/sentencepiece.git
|
|
||||||
#9ffb33a14c97c512103be0ee74740099660b39aa
|
|
||||||
|
|
||||||
curl -LO https://github.com/google/sentencepiece/releases/download/v0.1.97/sentencepiece-0.1.97.tar.gz
|
|
||||||
tar xzvf sentencepiece-0.1.97.tar.gz
|
|
||||||
cd sentencepiece-0.1.97/src
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake ..
|
|
||||||
make sentencepiece-static -j $(nproc)
|
|
||||||
cd ../..
|
|
||||||
|
|
Loading…
Reference in new issue