Akron | 7e75ef0 | 2021-11-06 13:19:45 +0100 | [diff] [blame] | 1 | clean: |
| 2 | go clean -testcache && rm -r ./bin |
| 3 | |
Akron | 96c6548 | 2023-02-28 09:08:48 +0100 | [diff] [blame] | 4 | update: |
| 5 | go get -u ./... && go mod tidy |
| 6 | |
Akron | 7e75ef0 | 2021-11-06 13:19:45 +0100 | [diff] [blame] | 7 | buildfoma: |
| 8 | cd src && \ |
Akron | 78f6714 | 2022-04-09 14:10:44 +0200 | [diff] [blame] | 9 | foma -e "source de/tokenizer.xfst" \ |
Akron | 7e75ef0 | 2021-11-06 13:19:45 +0100 | [diff] [blame] | 10 | -e "save stack ../testdata/tokenizer.fst" -q -s && \ |
| 11 | cd .. |
| 12 | |
| 13 | buildmatok: buildfoma build |
| 14 | ./bin/datok convert -i ./testdata/tokenizer.fst -o ./testdata/tokenizer.matok |
| 15 | |
| 16 | builddatok: buildfoma build |
| 17 | ./bin/datok convert -i ./testdata/tokenizer.fst -o ./testdata/tokenizer.datok -d |
| 18 | |
| 19 | test: |
| 20 | go test ./... |
| 21 | |
| 22 | build: |
| 23 | go build -v -o ./bin/datok ./cmd/datok.go |
Akron | 3976804 | 2021-11-10 07:18:02 +0100 | [diff] [blame] | 24 | |
| 25 | benchmark: |
| 26 | go test -bench=. -test.benchmem |