MarginaliaSearch/run/setup.sh

29 lines
1.1 KiB
Bash
Raw Normal View History

2023-03-04 13:35:50 +00:00
#!/bin/bash
set -e
2023-03-04 13:45:35 +00:00
function download_model {
model=$1
url=$2
if [ ! -f $model ]; then
echo "** Downloading $url"
wget -O $model $url
fi
}
2023-03-04 13:35:50 +00:00
pushd $(dirname $0)
2023-03-04 13:42:24 +00:00
cp -r template/conf .
2023-03-04 14:17:02 +00:00
mkdir -p model logs db samples install vol/ir/{0,1}/ vol/iw/{0,1}/search-sets
2023-03-04 13:42:24 +00:00
2023-03-04 13:45:35 +00:00
download_model model/English.DICT https://raw.githubusercontent.com/datquocnguyen/RDRPOSTagger/master/Models/POS/English.DICT
download_model model/English.RDR https://raw.githubusercontent.com/datquocnguyen/RDRPOSTagger/master/Models/POS/English.RDR
download_model model/opennlp-sentence.bin https://mirrors.estointernet.in/apache/opennlp/models/ud-models-1.0/opennlp-en-ud-ewt-sentence-1.0-1.9.3.bin
download_model model/opennlp-tokens.bin https://mirrors.estointernet.in/apache/opennlp/models/ud-models-1.0/opennlp-en-ud-ewt-tokens-1.0-1.9.3.bin
download_model model/IP2LOCATION-LITE-DB1.CSV.ZIP https://download.ip2location.com/lite/IP2LOCATION-LITE-DB1.CSV.ZIP
download_model model/ngrams.bin https://downloads.marginalia.nu/model/ngrams.bin
download_model model/tfreq-new-algo3.bin https://downloads.marginalia.nu/model/tfreq-new-algo3.bin
2023-03-04 13:42:24 +00:00
2023-03-04 13:35:50 +00:00
popd