-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from weaviate/native_build
Off by one error in word index
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
|
||
#Download contextionary | ||
LANGUAGE=en | ||
MODEL_VERSION=0.16.0 | ||
./tools/download_contextionary.sh "$LANGUAGE" "$MODEL_VERSION" | ||
|
||
#Build the server | ||
VERSION=1.2.0 | ||
CGO_ENABLED=1 go build -o ./contextionary-server -a -tags netgo -ldflags "-w -X main.Version=$VERSION" ./server | ||
|
||
#Generate contextionary | ||
tools/dev/gen_simple_contextionary.sh | ||
|
||
#Preprocess splitter dictionary | ||
/bin/bash ./tools/preprocess_splitter_dict.sh "$LANGUAGE" "./data/contextionary.idx" | ||
|
||
#Copy files to Alpine image | ||
cp ./contextionary-server $PWD | ||
|
||
#Set environment variables | ||
export KNN_FILE=./data/contextionary.knn | ||
export IDX_FILE=./data/contextionary.idx | ||
export STOPWORDS_FILE=./data/stopwords.json | ||
export COMPOUND_SPLITTING_DICTIONARY_FILE=./data/splitter_dict.csv | ||
|
||
#Run the server | ||
./contextionary-server |