blob: 297bfb85a2a971d0a752786f54952fc24f62afa1 [file] [log] [blame]
Akron7e75ef02021-11-06 13:19:45 +01001clean:
2 go clean -testcache && rm -r ./bin
3
4buildfoma:
5 cd src && \
6 foma -e "source tokenizer.xfst" \
7 -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