-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmultilingual-e5.bat
32 lines (30 loc) · 990 Bytes
/
multilingual-e5.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@echo off
setlocal enabledelayedexpansion
cd %~dp0
set MODEL=multilingual-e5
set EXE=multilingual-e5
set FILE1=multilingual-e5-base.onnx
set FILE2=multilingual-e5-base.onnx.prototxt
set FILE3=sentencepiece.bpe.model
rem download
if not "%1" == "-h" if not "%1" == "--help" (
if not exist %FILE1% (
echo Downloading onnx file... ^(save path: %FILE1%^)
curl https://storage.googleapis.com/ailia-models/%MODEL%/%FILE1% -o %FILE1%
)
)
if not "%1" == "-h" if not "%1" == "--help" (
if not exist %FILE2% (
echo Downloading onnx file... ^(save path: %FILE2%^)
curl https://storage.googleapis.com/ailia-models/%MODEL%/%FILE2% -o %FILE2%
)
echo ONNX file and Prototxt file are prepared^^!
)
if not "%1" == "-h" if not "%1" == "--help" (
if not exist %FILE3% (
echo Downloading vocab file... ^(save path: %FILE3%^)
curl https://storage.googleapis.com/ailia-models/%MODEL%/%FILE3% -o %FILE3%
)
)
rem execute
.\%EXE%.exe %*