blob: 75b86b1fa719c731413f2dd7e6b3487b2432d1e2 [file] [log] [blame]
Akron7e75ef02021-11-06 13:19:45 +01001clean:
2 go clean -testcache && rm -r ./bin
3
Akron96c65482023-02-28 09:08:48 +01004update:
5 go get -u ./... && go mod tidy
6
Akron7e75ef02021-11-06 13:19:45 +01007buildfoma:
8 cd src && \
Akron78f67142022-04-09 14:10:44 +02009 foma -e "source de/tokenizer.xfst" \
Akron7e75ef02021-11-06 13:19:45 +010010 -e "save stack ../testdata/tokenizer.fst" -q -s && \
11 cd ..
12
13buildmatok: buildfoma build
14 ./bin/datok convert -i ./testdata/tokenizer.fst -o ./testdata/tokenizer.matok
15
16builddatok: buildfoma build
17 ./bin/datok convert -i ./testdata/tokenizer.fst -o ./testdata/tokenizer.datok -d
18
19test:
20 go test ./...
21
22build:
23 go build -v -o ./bin/datok ./cmd/datok.go
Akron39768042021-11-10 07:18:02 +010024
25benchmark:
26 go test -bench=. -test.benchmem