blob: 7fb0073c1f4d06b3dd99fd75897159762c52933e [file] [log] [blame]
Akron7e75ef02021-11-06 13:19:45 +01001clean:
2 go clean -testcache && rm -r ./bin
3
4buildfoma:
5 cd src && \
Akron78f67142022-04-09 14:10:44 +02006 foma -e "source de/tokenizer.xfst" \
Akron7e75ef02021-11-06 13:19:45 +01007 -e "save stack ../testdata/tokenizer.fst" -q -s && \
8 cd ..
9
10buildmatok: buildfoma build
11 ./bin/datok convert -i ./testdata/tokenizer.fst -o ./testdata/tokenizer.matok
12
13builddatok: buildfoma build
14 ./bin/datok convert -i ./testdata/tokenizer.fst -o ./testdata/tokenizer.datok -d
15
16test:
17 go test ./...
18
19build:
20 go build -v -o ./bin/datok ./cmd/datok.go
Akron39768042021-11-10 07:18:02 +010021
22benchmark:
23 go test -bench=. -test.benchmem