Skip to content

Commit

Permalink
fix: update example to latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
daulet committed Aug 9, 2024
1 parent f5ef49c commit eafe2ce
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Example

```
# Keep this version in sync with go module release
curl -fsSL https://github.com/daulet/tokenizers/releases/download/v0.9.0/libtokenizers.darwin-aarch64.tar.gz | tar xvz
# change -L argument to where you've placed the library download above
go run -ldflags="-extldflags '-L$(pwd)'" main.go
```
4 changes: 2 additions & 2 deletions example/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/daulet/tokenizers/example

go 1.21
go 1.22

require github.com/daulet/tokenizers v0.6.0
require github.com/daulet/tokenizers v0.9.0
4 changes: 2 additions & 2 deletions example/go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/daulet/tokenizers v0.6.0 h1:y6cSPx5YMrXy9dkt7NGWY1l64iwOpD0YU4j6P1Gwqo8=
github.com/daulet/tokenizers v0.6.0/go.mod h1:tGnMdZthXdcWY6DGD07IygpwJqiPvG85FQUnhs/wSCs=
github.com/daulet/tokenizers v0.9.0 h1:PSjFUGeuhqb3C0GKP9hdvtHvJ6L1AZceV+0nYGACtCk=
github.com/daulet/tokenizers v0.9.0/go.mod h1:tGnMdZthXdcWY6DGD07IygpwJqiPvG85FQUnhs/wSCs=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand Down
2 changes: 1 addition & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

func main() {
tk, err := tokenizers.FromFile("./test/data/bert-base-uncased.json")
tk, err := tokenizers.FromFile("../test/data/bert-base-uncased.json")
if err != nil {
panic(err)
}
Expand Down

0 comments on commit eafe2ce

Please sign in to comment.