Golang binding for https://github.com/zejunwang1/easytokenizer
But in this project, we make compatible easytokenizer to 0.2.0, and rename some functions, because of C++ function override
-
version 0.2.1
- Update some free function.
-
version 0.2.0
- Fix
EncodeWithIds
,WordPieceTokenize
API return error result. - Add Github Workflows.
- Update test code.
- Fix
-
version 0.1.0
- Finish API
initTokenizer
,encode
,encodeWithIds
,wordPieceTokenize
in CGO. - Finish API
NewTokenizer
,Close
,Encode
,EncodeWithIds
,WordPieceTokenize
in Golang.
- Finish API
- Linux/MacOS
sh build.sh
- When building golang program, please add
export CGO_CXXFLAGS=-std=c++11
command beforego build / run / test ...
- In example folder.