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 | be3d366 | 2023-04-26 13:22:38 +0200 | [diff] [blame] | 7 | buildfoma_de: |
Akron | 7e75ef0 | 2021-11-06 13:19:45 +0100 | [diff] [blame] | 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 | |
Akron | be3d366 | 2023-04-26 13:22:38 +0200 | [diff] [blame] | 13 | buildfoma_en: |
| 14 | cd src && \ |
| 15 | foma -e "source en/tokenizer.xfst" \ |
| 16 | -e "save stack ../testdata/tokenizer_en.fst" -q -s && \ |
| 17 | cd .. |
| 18 | |
Akron | 7e75ef0 | 2021-11-06 13:19:45 +0100 | [diff] [blame] | 19 | buildmatok: buildfoma build |
| 20 | ./bin/datok convert -i ./testdata/tokenizer.fst -o ./testdata/tokenizer.matok |
| 21 | |
Akron | be3d366 | 2023-04-26 13:22:38 +0200 | [diff] [blame] | 22 | buildmatok_en: buildfoma_en build |
| 23 | ./bin/datok convert -i ./testdata/tokenizer_en.fst -o ./testdata/tokenizer_en.matok |
| 24 | |
Akron | 7e75ef0 | 2021-11-06 13:19:45 +0100 | [diff] [blame] | 25 | builddatok: buildfoma build |
| 26 | ./bin/datok convert -i ./testdata/tokenizer.fst -o ./testdata/tokenizer.datok -d |
| 27 | |
| 28 | test: |
| 29 | go test ./... |
| 30 | |
| 31 | build: |
| 32 | go build -v -o ./bin/datok ./cmd/datok.go |
Akron | 3976804 | 2021-11-10 07:18:02 +0100 | [diff] [blame] | 33 | |
| 34 | benchmark: |
| 35 | go test -bench=. -test.benchmem |