blob: 7fb0073c1f4d06b3dd99fd75897159762c52933e [file] [log] [blame]
clean:
go clean -testcache && rm -r ./bin
buildfoma:
cd src && \
foma -e "source de/tokenizer.xfst" \
-e "save stack ../testdata/tokenizer.fst" -q -s && \
cd ..
buildmatok: buildfoma build
./bin/datok convert -i ./testdata/tokenizer.fst -o ./testdata/tokenizer.matok
builddatok: buildfoma build
./bin/datok convert -i ./testdata/tokenizer.fst -o ./testdata/tokenizer.datok -d
test:
go test ./...
build:
go build -v -o ./bin/datok ./cmd/datok.go
benchmark:
go test -bench=. -test.benchmem