Akron | 7e75ef0 | 2021-11-06 13:19:45 +0100 | [diff] [blame] | 1 | clean: |
| 2 | go clean -testcache && rm -r ./bin |
| 3 | |
| 4 | buildfoma: |
| 5 | cd src && \ |
| 6 | foma -e "source tokenizer.xfst" \ |
| 7 | -e "save stack ../testdata/tokenizer.fst" -q -s && \ |
| 8 | cd .. |
| 9 | |
| 10 | buildmatok: buildfoma build |
| 11 | ./bin/datok convert -i ./testdata/tokenizer.fst -o ./testdata/tokenizer.matok |
| 12 | |
| 13 | builddatok: buildfoma build |
| 14 | ./bin/datok convert -i ./testdata/tokenizer.fst -o ./testdata/tokenizer.datok -d |
| 15 | |
| 16 | test: |
| 17 | go test ./... |
| 18 | |
| 19 | build: |
| 20 | go build -v -o ./bin/datok ./cmd/datok.go |
Akron | 3976804 | 2021-11-10 07:18:02 +0100 | [diff] [blame] | 21 | |
| 22 | benchmark: |
| 23 | go test -bench=. -test.benchmem |